Interface TreeSelectionPane.Model
- Enclosing class:
TreeSelectionPane
public static interface TreeSelectionPane.Model
The model for the tree whose nodes can be selected in a TreeSelectionPane.
-
Method Summary
Modifier and TypeMethodDescriptionGet a specific child of a node.intgetChildCount(Object node) Get the number of children for a node.Get the name of a node.Get the path of a node.getRoot()Get the root node of the tree.booleanCheck whether or not a node is a leaf node.
-
Method Details
-
getRoot
-
getChildCount
Get the number of children for a node.- Parameters:
node- the node for which the number of children is required- Returns:
- the number of children of the specified node
-
getChild
-
getName
-
getPath
-
isLeaf
Check whether or not a node is a leaf node. This is simply a semantic distinction for a node, that will be used to determine how the node should be displayed; it is independent of whether a node has any children or not.- Parameters:
node- the node to be checked- Returns:
- true if the node is a leaf node, and false otherwise
-