|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the requirements for an object that can be used as a tree node for
HtmlTree
. (inspired by javax.swing.tree.TreeNode).
Method Summary | |
---|---|
java.util.Iterator |
children()
Answer the children of the receiver. |
boolean |
getAllowsChildren()
Answer true if this node allows children. |
TreeNode |
getChildAt(int childIndex)
Answer the child at the given index. |
int |
getChildCount()
Answer the number of children this node contains. |
int |
getIndex(TreeNode node)
Answer the index of the given node in this node's children. |
TreeNode |
getParent()
Answer the parent of this node. |
java.lang.Object |
getUserObject()
|
boolean |
isLeaf()
Answer true if this is a leaf node. |
Method Detail |
public java.lang.Object getUserObject()
public TreeNode getChildAt(int childIndex)
public int getChildCount()
public TreeNode getParent()
public int getIndex(TreeNode node)
public boolean getAllowsChildren()
public boolean isLeaf()
public java.util.Iterator children()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |