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

java.lang.Object
  extended by com.ibm.commons.swt.data.controls.tabletree.TreeNode
      extended by com.ibm.commons.swt.data.controls.tabletree.RootNode

public class RootNode
extends TreeNode

The root node of a DCPropertyTree

See Also:
DCPropertyTree

Constructor Summary
RootNode(DCPropertyTree propertyTree, ILoader loader, java.lang.Object object)
          Creates a new instance of this class.
 
Method Summary
 void fillItem()
          Fill the contents of the corresponding TreeItem.
 void fillNode()
          Fills the child nodes of this root node.
 java.lang.Object getDataObject()
          Returns the object that this root node is displaying/operating on
 ILoader getLoader()
          Returns an ILoader associated with this node.
 DCPropertyTree getPropertyTree()
          Returns the tree control associated with this node.
protected  boolean isVisible()
          Returns whether or not the current tree node is visible.
 
Methods inherited from class com.ibm.commons.swt.data.controls.tabletree.TreeNode
addChild, clearChildrenNode, dispose, fillNode, getChildren, getDataChangeNotifier, getParent, 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

RootNode

public RootNode(DCPropertyTree propertyTree,
                ILoader loader,
                java.lang.Object object)
Creates a new instance of this class.

Parameters:
propertyTree - the tree control that is going to display this root node
loader - the ILoader to be used with this root node
object - the object being displayed by this root node
Method Detail

getLoader

public ILoader getLoader()
Description copied from class: TreeNode
Returns an ILoader associated with this node.

Overrides:
getLoader in class TreeNode
Returns:
the ILoader which is used with this tree, may be null
See Also:
ILoader

getDataObject

public java.lang.Object getDataObject()
Returns the object that this root node is displaying/operating on

Returns:
an object that can be interpreted by the DC model

getPropertyTree

public DCPropertyTree getPropertyTree()
Description copied from class: TreeNode
Returns the tree control associated with this node.

Overrides:
getPropertyTree in class TreeNode
Returns:
a DCPropertyTree control associated with this node

isVisible

protected boolean isVisible()
Description copied from class: TreeNode
Returns whether or not the current tree node is visible.

Overrides:
isVisible in class TreeNode
Returns:
true if visible

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

fillNode

public void fillNode()
              throws com.ibm.commons.iloader.node.NodeException
Fills the child nodes of this root node.

Throws:
com.ibm.commons.iloader.node.NodeException