com.sun.javatest.tool
public static interface TreeSelectionPane.Model
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.Object getRoot()
int getChildCount(java.lang.Object node)
node
- the node for which the number of children is requiredjava.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 requiredjava.lang.String getPath(java.lang.Object node)
node
- the node for which the path is requiredboolean isLeaf(java.lang.Object node)
node
- the node to be checkedCopyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.