T
- type of nodepublic interface TreeNode<T>
TreeModel
. In a DefaultTreeModel
, most of the node's information
comes via the TreeModelAdapter
.Modifier and Type | Method and Description |
---|---|
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).
|
String getId()
TreeModel.getById(String)
boolean isLeaf()
TreeModelAdapter.isLeaf(Object)
boolean getHasChildren()
TreeModelAdapter.hasChildren(Object)
List<TreeNode<T>> getChildren()
TreeModelAdapter.getChildren(Object)
String getLabel()
TreeModelAdapter.getLabel(Object)
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.