|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Tree Node Interface.
Method Summary | |
java.util.Iterator |
children()
Returns iterator over the children of the node. |
boolean |
getAllowsChildren()
Returns true if the node allows children. |
TreeNode |
getChildAt(int index)
Returns child at the specified index. |
int |
getChildCount()
Returns the number of children. |
int |
getIndex(TreeNode node)
Returns index of specified node or -1 if there is no such node. |
TreeNode |
getParent()
Returns parent of the node. |
boolean |
isLeaf()
Returns true if the node is leaf. |
Method Detail |
public TreeNode getParent()
public boolean isLeaf()
public boolean getAllowsChildren()
public int getChildCount()
public TreeNode getChildAt(int index)
index
- the child index
public int getIndex(TreeNode node)
node
- the node
public java.util.Iterator children()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |