|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface TreeSelectionPane.Model
The model for the tree whose nodes can be selected in a TreeSelectionPane.
Method Summary | |
---|---|
java.lang.Object |
getChild(java.lang.Object node,
int index)
Get a specific child of a node. |
int |
getChildCount(java.lang.Object node)
Get the number of children for a node. |
java.lang.String |
getName(java.lang.Object node)
Get the name of a node. |
java.lang.String |
getPath(java.lang.Object node)
Get the path of a node. |
java.lang.Object |
getRoot()
Get the root node of the tree. |
boolean |
isLeaf(java.lang.Object node)
Check whether or not a node is a leaf node. |
Method Detail |
---|
java.lang.Object getRoot()
int getChildCount(java.lang.Object node)
node
- the node for which the number of children is required
java.lang.Object getChild(java.lang.Object node, int index)
node
- the node for which the child is requiredindex
- the index of the desired child; this should be
in the range [0..getChildCount())
java.lang.String getName(java.lang.Object node)
node
- the node for which the name is required
java.lang.String getPath(java.lang.Object node)
node
- the node for which the path is required
boolean isLeaf(java.lang.Object node)
node
- the node to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |