|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type of nodepublic interface TreeSelectionModel<T>
Tracks which leaf nodes of a 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.
Tree| Method Summary | |
|---|---|
void |
clear()
Clears the selection. |
boolean |
isSelected(TreeNode<T> node)
Returns true, if the given node is selected. |
void |
select(TreeNode<T> node)
Selects a node. |
void |
unselect(TreeNode<T> node)
Unselects a node. |
| Method Detail |
|---|
boolean isSelected(TreeNode<T> node)
true, if the given node is selected.
node - node to checkvoid select(TreeNode<T> node)
node - node to selectvoid unselect(TreeNode<T> node)
node - node to unselectvoid clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||