| |
|
| java.lang.Object org.eclipse.jface.viewers.TreeNode
Field Summary | |
protected Object | value The value contained in this node. |
Constructor Summary | |
public | TreeNode(Object value) Constructs a new instance of TreeNode . |
value | protected Object value(Code) | | The value contained in this node. This value may be anything.
|
TreeNode | public TreeNode(Object value)(Code) | | Constructs a new instance of TreeNode .
Parameters: value - The value held by this node; may be anything. |
getChildren | public TreeNode[] getChildren()(Code) | | Returns the child nodes. Empty arrays are converted to null
before being returned.
The child nodes; may be null , but never empty.There should be no null children in the array. |
getParent | public TreeNode getParent()(Code) | | Returns the parent node.
The parent node; may be null if there are noparent nodes. |
getValue | public Object getValue()(Code) | | Returns the value held by this node.
The value; may be anything. |
hasChildren | public boolean hasChildren()(Code) | | Returns whether the tree has any children.
true if its array of children is notnull and is non-empty; false otherwise. |
hashCode | public int hashCode()(Code) | | |
setChildren | public void setChildren(TreeNode[] children)(Code) | | Sets the children for this node.
Parameters: children - The child nodes; may be null or empty. Thereshould be no null children in the array. |
setParent | public void setParent(TreeNode parent)(Code) | | Sets the parent for this node.
Parameters: parent - The parent node; may be null . |
|
|
|