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

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

public class ObjectCollectionNode
extends MemberNode

A node representing an ObjectCollection in a DCPropertyTree.

See Also:
DCPropertyTree, ICollection

Constructor Summary
ObjectCollectionNode(TreeNode parent, java.lang.Object object, ICollection collection)
          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.
 PropertyEditor getPropertyEditor()
          Returns a property editor that is associated with 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, 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

ObjectCollectionNode

public ObjectCollectionNode(TreeNode parent,
                            java.lang.Object object,
                            ICollection collection)
Creates a new instance of this class.

Parameters:
parent - the node in the tree that is a parent of this node
object - the object that is to appear in the tree
collection - the collection being represented by this node
See Also:
ICollection
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

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