com.ibm.di.admin.ui
Class ConnectorTreeUI.ConnectorTreeModel

java.lang.Object
  extended by com.ibm.di.admin.ui.ConnectorTreeUI.ConnectorTreeModel
All Implemented Interfaces:
MetamergeConfigChangeListener, TreeModel
Enclosing class:
ConnectorTreeUI

public class ConnectorTreeUI.ConnectorTreeModel
extends Object
implements TreeModel, MetamergeConfigChangeListener

List Model.


Constructor Summary
ConnectorTreeUI.ConnectorTreeModel(AssemblyLineConfig config)
          Constructor for the ConnectorTreeModel object
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
          Adds a feature to the TreeModelListener attribute of the ConnectorTreeModel object
 void configurationChanged(MetamergeConfigChange changeEvent)
          This method is called when the configuration is changed.
 Object getChild(Object parent, int index)
          Gets the child attribute of the ConnectorTreeModel object
 int getChildCount(Object parent)
          Gets the childCount attribute of the ConnectorTreeModel object
 int getIndexOfChild(Object parent, Object child)
          Gets the indexOfChild attribute of the ConnectorTreeModel object.
 Object getRoot()
          Gets the root attribute of the ConnectorTreeModel object
 int getSize()
          Gets the size attribute of the ConnectorTreeModel object
 boolean isLeaf(Object node)
          Checks if a specified node of the tree is leaf or not.
 void removeTreeModelListener(TreeModelListener l)
          Removes a specified TreeModelListener.
 void valueForPathChanged(TreePath path, Object newValue)
          This method is called when a change is made to the tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorTreeUI.ConnectorTreeModel

public ConnectorTreeUI.ConnectorTreeModel(AssemblyLineConfig config)
Constructor for the ConnectorTreeModel object

Parameters:
config - contains information about the configuration of the AssemblyLine.
Method Detail

getSize

public int getSize()
Gets the size attribute of the ConnectorTreeModel object

Returns:
The size value

configurationChanged

public void configurationChanged(MetamergeConfigChange changeEvent)
This method is called when the configuration is changed.

Specified by:
configurationChanged in interface MetamergeConfigChangeListener
Parameters:
changeEvent - describes the changes of the configuration.

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
Adds a feature to the TreeModelListener attribute of the ConnectorTreeModel object

Specified by:
addTreeModelListener in interface TreeModel
Parameters:
l - The feature to be added to the TreeModelListener attribute

getChild

public Object getChild(Object parent,
                       int index)
Gets the child attribute of the ConnectorTreeModel object

Specified by:
getChild in interface TreeModel
Parameters:
parent - the parent object.
index - the index of the child.
Returns:
The child value

getChildCount

public int getChildCount(Object parent)
Gets the childCount attribute of the ConnectorTreeModel object

Specified by:
getChildCount in interface TreeModel
Parameters:
parent - the parent object.
Returns:
The childCount value

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
Gets the indexOfChild attribute of the ConnectorTreeModel object.

Specified by:
getIndexOfChild in interface TreeModel
Parameters:
parent - the parent object.
child - the child object.
Returns:
Returns the number of children of parent.

getRoot

public Object getRoot()
Gets the root attribute of the ConnectorTreeModel object

Specified by:
getRoot in interface TreeModel
Returns:
Returns the root of the ConnectorTreeModel.

isLeaf

public boolean isLeaf(Object node)
Checks if a specified node of the tree is leaf or not.

Specified by:
isLeaf in interface TreeModel
Parameters:
node - the desired node of the tree.
Returns:
true if the node is leaf and false if it is not.

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
Removes a specified TreeModelListener.

Specified by:
removeTreeModelListener in interface TreeModel
Parameters:
l - the Listener which will be removed.

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
This method is called when a change is made to the tree.

Specified by:
valueForPathChanged in interface TreeModel
Parameters:
path - path to the node that the user has altered.
newValue - the new value of the node.