T
- type of nodepublic interface TreeSelectionModel<T>
TreeModel
are currently selected. The default
implementation simply stores a set of unique node
ids to identify selected nodes. The selection model is updated whenever the user clicks on the label for a leaf node.
In the future, new methods may be added that will support selection of folders as well as leafs, and define the rules for
how selections and de-selections propagate down to children or up to parents.Tree
boolean isSelected(TreeNode<T> node)
true
, if the given node is selected.node
- node to checkvoid clear()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.