|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of data in the treepublic interface TreeModel<T>
A model for tree-oriented data used by the Tree
component. The default implemention, DefaultTreeModel
uses a ValueEncoder
and a TreeModelAdapter
to supply the
underlying information.
TreeSelectionModel
Method Summary | |
---|---|
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. |
Method Detail |
---|
List<TreeNode<T>> getRootNodes()
TreeNode<T> getById(String id)
IllegalArgumentException
- if no such node existsTreeNode.getId()
TreeNode<T> find(T element)
element
- to search for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |