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

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.PrimitiveContainerNode
              extended by com.ibm.commons.swt.data.controls.tabletree.PrimitiveCollectionItemNode

public class PrimitiveCollectionItemNode
extends PrimitiveContainerNode

An individual item in a primitive collection.

See Also:
DCPropertyTree, PrimitiveContainerNode

Constructor Summary
PrimitiveCollectionItemNode(PrimitiveCollectionNode parent, int index)
          Creates a new instance of this class.
 
Method Summary
 void fillItem()
          Fill the contents of the corresponding TreeItem.
 int getIndex()
          Returns the index of the current node in the collection.
 PropertyEditor getPropertyEditor()
          Returns a property editor that is associated with the current node.
 java.lang.String getValue()
          Returns the value of the current node
 void setValue(java.lang.String value)
          Sets the value of the current node.
 
Methods inherited from class com.ibm.commons.swt.data.controls.tabletree.MemberNode
getMember, getObjectContainer, isVisible
 
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

PrimitiveCollectionItemNode

public PrimitiveCollectionItemNode(PrimitiveCollectionNode parent,
                                   int index)
                            throws com.ibm.commons.iloader.node.NodeException
Creates a new instance of this class.

Parameters:
parent - the parent tree node of the current node
index - the index of the current node in the node collection
Throws:
com.ibm.commons.iloader.node.NodeException - if an error was encountered when creating the tree node
Method Detail

getPropertyEditor

public PropertyEditor getPropertyEditor()
Description copied from class: MemberNode
Returns a property editor that is associated with the current node.

Overrides:
getPropertyEditor in class MemberNode
Returns:
null by default

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.String getValue()
Description copied from class: PrimitiveContainerNode
Returns the value of the current node

Specified by:
getValue in class PrimitiveContainerNode
Returns:
a string representing the primative value of this node

setValue

public void setValue(java.lang.String value)
Description copied from class: PrimitiveContainerNode
Sets the value of the current node.

Specified by:
setValue in class PrimitiveContainerNode
Parameters:
value - a value which will be converted to a primative value

getIndex

public int getIndex()
Returns the index of the current node in the collection.

Returns:
a zero based int index