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

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

public class ObjectValueNode
extends ObjectContainerNode

A node which describes an object's value in the tree

See Also:
DCPropertyTree

Constructor Summary
ObjectValueNode(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.
 void fillNode(IClassDef classDef, java.lang.Object object)
          Creates a tree structure based on the provided class definition and object.
 void fillNode(TreeNode node)
          Adds children to the current node.
 PropertyEditor getPropertyEditor()
          Returns a property editor that is associated with the current node.
 java.lang.Object getValue()
          Gets the value of the current tree node.
 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, isVisible
 
Methods inherited from class com.ibm.commons.swt.data.controls.tabletree.TreeNode
addChild, clearChildrenNode, dispose, 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

ObjectValueNode

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

Parameters:
parent - the tree node which is the parent of the current node
object - the object being displayed in the tree
attribute - the attribute that the current node represents
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

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.

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

fillNode

public void fillNode(TreeNode node)
Adds children to the current node.

Parameters:
node - the tree node which is to be added as a child of this node
See Also:
TreeNode.addChild(TreeNode)

fillNode

public void fillNode(IClassDef classDef,
                     java.lang.Object object)
              throws com.ibm.commons.iloader.node.NodeException
Description copied from class: TreeNode
Creates a tree structure based on the provided class definition and object.

Overrides:
fillNode in class TreeNode
Parameters:
classDef - a class definition which will be described by the resulting tree
object - the object that is to appear in the tree
Throws:
com.ibm.commons.iloader.node.NodeException - an exception will be generated if a null class definition is provided and the object provided does not have a corresponding class definition
See Also:
IClassDef