T
- type of nodepublic class DefaultTreeSelectionModel<T> extends BaseOptimizedSessionPersistedObject implements TreeSelectionModel<T>
TreeSelectionModel
. This is simply a wrapper around a set of node ids.Constructor and Description |
---|
DefaultTreeSelectionModel() |
Modifier and Type | Method and Description |
---|---|
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.
|
checkAndResetDirtyMarker, markDirty
public DefaultTreeSelectionModel()
public boolean isSelected(TreeNode<T> node)
TreeSelectionModel
true
, if the given node is selected.isSelected
in interface TreeSelectionModel<T>
node
- node to checkpublic void select(TreeNode<T> node)
TreeSelectionModel
select
in interface TreeSelectionModel<T>
node
- node to selectpublic void unselect(TreeNode<T> node)
TreeSelectionModel
unselect
in interface TreeSelectionModel<T>
node
- node to unselectpublic void clear()
TreeSelectionModel
clear
in interface TreeSelectionModel<T>
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.