|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.swt.data.controls.tabletree.TreeNode
public abstract class TreeNode
An abstract node class. Subclasses appear in the DCPropertyTree and related controls.
DCPropertyTree
Method Summary | |
---|---|
void |
addChild(TreeNode child)
Adds a child to the current node. |
protected void |
clearChildrenNode()
|
protected void |
dispose()
Disposes the TreeItem corresponding to this node. |
abstract 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. |
java.util.ArrayList<TreeNode> |
getChildren()
Returns all of the children of the current node. |
DataChangeNotifier |
getDataChangeNotifier()
A DataChangeNotifier associated with the property tree. |
ILoader |
getLoader()
Returns an ILoader associated with this node. |
TreeNode |
getParent()
Returns the parent of the current node |
DCPropertyTree |
getPropertyTree()
Returns the tree control associated with this node. |
RootNode |
getRootNode()
Returns the root of the tree, i.e. |
org.eclipse.swt.widgets.TreeItem |
getTreeItem()
Returns the TreeItem associated with this tree node. |
protected boolean |
isShowing()
|
protected boolean |
isVisible()
Returns whether or not the current tree node is visible. |
void |
refreshTree(DCPropertyTree tableTree)
Refreshes the contents of the given tree. |
protected static java.lang.String |
toEdit(java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final TreeNode getParent()
public final RootNode getRootNode()
public void fillNode(IClassDef classDef, java.lang.Object object) throws com.ibm.commons.iloader.node.NodeException
classDef
- a class definition which will be described by the resulting treeobject
- the object that is to appear in the tree
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 definitionIClassDef
public DCPropertyTree getPropertyTree()
public final DataChangeNotifier getDataChangeNotifier()
DataChangeNotifier
associated with the property tree.
DataChangeNotifier
public ILoader getLoader()
ILoader
associated with this node.
ILoader
protected boolean isShowing()
protected boolean isVisible()
protected void dispose()
public abstract void fillItem()
getTreeItem()
and manipulate the resulting TreeItem.
public org.eclipse.swt.widgets.TreeItem getTreeItem()
TreeItem
associated with this tree node.
public void refreshTree(DCPropertyTree tableTree)
tableTree
- the DCPropertyTree that is to be refreshedpublic void addChild(TreeNode child)
child
- public java.util.ArrayList<TreeNode> getChildren()
protected static java.lang.String toEdit(java.lang.String value)
protected void clearChildrenNode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |