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

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.PrimitiveValueNode

public class PrimitiveValueNode
extends PrimitiveContainerNode

A tree node representing the value of a primative member.

See Also:
DCPropertyTree

Constructor Summary
PrimitiveValueNode(TreeNode parent, java.lang.Object object, IAttribute attribute)
          Creates a new instance of this class.
 
Method Summary
 void fillItem()
          Fill the contents of the corresponding TreeItem.
 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

PrimitiveValueNode

public PrimitiveValueNode(TreeNode parent,
                          java.lang.Object object,
                          IAttribute attribute)
Creates a new instance of this class.

Parameters:
parent - the parent tree node of the current node
object - the object being displayed by the tree
attribute - the attribute being represented by the current [this] tree node
Method Detail

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

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

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