Package org.apache.tapestry5.tree
Class DefaultTreeSelectionModel<T>
- java.lang.Object
-
- org.apache.tapestry5.BaseOptimizedSessionPersistedObject
-
- org.apache.tapestry5.tree.DefaultTreeSelectionModel<T>
-
- Type Parameters:
T
- type of node
- All Implemented Interfaces:
java.io.Serializable
,OptimizedSessionPersistedObject
,TreeSelectionModel<T>
public class DefaultTreeSelectionModel<T> extends BaseOptimizedSessionPersistedObject implements TreeSelectionModel<T>
Default implementation ofTreeSelectionModel
. This is simply a wrapper around a set of node ids.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the selection.boolean
isSelected(TreeNode<T> node)
Returnstrue
, if the given node is selected.void
select(TreeNode<T> node)
Selects a node.void
unselect(TreeNode<T> node)
Unselects a node.-
Methods inherited from class org.apache.tapestry5.BaseOptimizedSessionPersistedObject
checkAndResetDirtyMarker, markDirty
-
-
-
-
Constructor Detail
-
DefaultTreeSelectionModel
public DefaultTreeSelectionModel()
-
-
Method Detail
-
isSelected
public boolean isSelected(TreeNode<T> node)
Description copied from interface:TreeSelectionModel
Returnstrue
, if the given node is selected.- Specified by:
isSelected
in interfaceTreeSelectionModel<T>
- Parameters:
node
- node to check
-
select
public void select(TreeNode<T> node)
Description copied from interface:TreeSelectionModel
Selects a node.- Specified by:
select
in interfaceTreeSelectionModel<T>
- Parameters:
node
- node to select
-
unselect
public void unselect(TreeNode<T> node)
Description copied from interface:TreeSelectionModel
Unselects a node.- Specified by:
unselect
in interfaceTreeSelectionModel<T>
- Parameters:
node
- node to unselect
-
clear
public void clear()
Description copied from interface:TreeSelectionModel
Clears the selection.- Specified by:
clear
in interfaceTreeSelectionModel<T>
-
-