com.ibm.commons.swt.data.controls.tabletree
Class ObjectCollectionItemNode

java.lang.Object
  extended by com.ibm.commons.swt.data.controls.tabletree.TreeNode
      extended by com.ibm.commons.swt.data.controls.tabletree.MemberNode
          extended by com.ibm.commons.swt.data.controls.tabletree.ObjectContainerNode
              extended by com.ibm.commons.swt.data.controls.tabletree.ObjectCollectionItemNode

public class ObjectCollectionItemNode
extends ObjectContainerNode

A tree node associated with a collection of objects

See Also:
IObjectCollection, DCPropertyTree

Constructor Summary
ObjectCollectionItemNode(ObjectCollectionNode parent, IObjectCollection objectCollection, int index)
          Creates a new instance of this class.
 
Method Summary
 void fillItem()
          Fill the contents of the corresponding TreeItem.
 int getIndex()
          Gets the index for the current node
 java.lang.Object getValue()
          Gets the value of the current tree node.
protected  boolean isVisible()
          Returns whether or not the member associated with this node is visible
 void setValue(java.lang.Object value)
          Sets the value of the current tree node.
 
Methods inherited from class com.ibm.commons.swt.data.controls.tabletree.MemberNode
getMember, getObjectContainer, getPropertyEditor
 
Methods inherited from class com.ibm.commons.swt.data.controls.tabletree.TreeNode
addChild, clearChildrenNode, dispose, fillNode, getChildren, getDataChangeNotifier, getLoader, getParent, getPropertyTree, getRootNode, getTreeItem, isShowing, refreshTree, toEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCollectionItemNode

public ObjectCollectionItemNode(ObjectCollectionNode parent,
                                IObjectCollection objectCollection,
                                int index)
Creates a new instance of this class.

Parameters:
parent - the parent ObjectCollectionNode
objectCollection - a collection of objects
index - the index in the collection where this node resides
Method Detail

isVisible

protected boolean isVisible()
Description copied from class: MemberNode
Returns whether or not the member associated with this node is visible

Overrides:
isVisible in class MemberNode
Returns:
the visibility of the member

fillItem

public void fillItem()
Description copied from class: TreeNode
Fill the contents of the corresponding TreeItem. Typically this method will call TreeNode.getTreeItem() and manipulate the resulting TreeItem.

Specified by:
fillItem in class TreeNode

getValue

public java.lang.Object getValue()
Description copied from class: ObjectContainerNode
Gets the value of the current tree node.

Specified by:
getValue in class ObjectContainerNode
Returns:
an object representing the value of the current node

setValue

public void setValue(java.lang.Object value)
Description copied from class: ObjectContainerNode
Sets the value of the current tree node.

Specified by:
setValue in class ObjectContainerNode
Parameters:
value - an object representing the value of the current node.

getIndex

public int getIndex()
Gets the index for the current node

Returns:
an int based index for the current node