|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of nodepublic interface TreeNode<T>
A node within a TreeModel
. In a DefaultTreeModel
, most of the node's information
comes via the TreeModelAdapter
.
Method Summary | |
---|---|
List<TreeNode<T>> |
getChildren()
Returns the actual children of this non-leaf node, as additional nodes. |
boolean |
getHasChildren()
Returns true if this non-leaf node has child nodes. |
String |
getId()
Returns a string Id for the node that uniquely identifies it. |
String |
getLabel()
Returns a textual label for the node. |
T |
getValue()
Returns the value represented by this node. |
boolean |
isLeaf()
If true, then this node is a leaf node, which never has children (i.e., a file). |
Method Detail |
---|
String getId()
TreeModel.getById(String)
T getValue()
boolean isLeaf()
TreeModelAdapter.isLeaf(Object)
boolean getHasChildren()
TreeModelAdapter.hasChildren(Object)
List<TreeNode<T>> getChildren()
TreeModelAdapter.getChildren(Object)
String getLabel()
TreeModelAdapter.getLabel(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |