|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TreeNode
A tree node.
| Method Summary | |
|---|---|
Enumeration |
children()
Returns an enumeration of the children of this node, or an empty enumeration if this node has no children. |
boolean |
getAllowsChildren()
Returns true if this node allows children, and
false otherwise. |
TreeNode |
getChildAt(int index)
Returns the child node at the given index. |
int |
getChildCount()
Returns the number of children for this node. |
int |
getIndex(TreeNode node)
Returns the index of the specified child node, or -1 if the node is not in fact a child of this node. |
TreeNode |
getParent()
Returns the parent node for this tree node, or null if this
node has no parent. |
boolean |
isLeaf()
Returns true if this node is a leaf node, and
false otherwise. |
| Method Detail |
|---|
TreeNode getParent()
null if this
node has no parent.
null).int getIndex(TreeNode node)
node - the node (null not permitted).
IllegalArgumentException - if node is null.TreeNode getChildAt(int index)
index - the index (in the range 0 to
getChildCount() - 1).
int getChildCount()
boolean getAllowsChildren()
true if this node allows children, and
false otherwise.
boolean isLeaf()
true if this node is a leaf node, and
false otherwise.
Enumeration children()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||