Implementations of TreeNode that override equals
will typically need to override hashCode as well. Refer
to javax. for more information.
For further information and examples of using tree nodes,
see How to Use Tree Nodes
in The Java Tutorial.
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | Returns: the children of the receiver as anEnumerationReturns the children of the receiver as an |
| public boolean | Returns: whether the receiver allows childrenReturns true if the receiver allows children. |
| public TreeNode | Returns: the child node at given indexindex of child childIndex)Returns the child |
| public int | Returns: the number of children the receiver containsReturns the number of children |
| public int | |
| public TreeNode | |
| public boolean |
| children | back to summary |
|---|---|
| public Enumeration Returns the children of the receiver as an
| |
| getAllowsChildren | back to summary |
|---|---|
| public boolean getAllowsChildren() Returns true if the receiver allows children.
| |
| getChildAt | back to summary |
|---|---|
| public TreeNode getChildAt(int childIndex) Returns the child
| |
| getChildCount | back to summary |
|---|---|
| public int getChildCount() Returns the number of children
| |
| getIndex | back to summary |
|---|---|
| public int getIndex(TreeNode node) Returns the index of
| |
| getParent | back to summary |
|---|---|
| public TreeNode getParent() Returns the parent
| |
| isLeaf | back to summary |
|---|---|
| public boolean isLeaf() Returns true if the receiver is a leaf.
| |