T
- type of data in the treepublic interface TreeModel<T>
Tree
component. The default implemention, DefaultTreeModel
uses a ValueEncoder
and a TreeModelAdapter
to supply the
underlying information.TreeSelectionModel
Modifier and Type | Method and Description |
---|---|
TreeNode<T> |
find(T element)
Recursively searches from the root nodes to find the tree node that matches
the provided element.
|
TreeNode<T> |
getById(String id)
Locates a node in the tree by its unique id.
|
List<TreeNode<T>> |
getRootNodes()
Returns the node or nodes that are the top level of the tree.
|
List<TreeNode<T>> getRootNodes()
TreeNode<T> getById(String id)
IllegalArgumentException
- if no such node existsTreeNode.getId()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.