|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.BaseOptimizedSessionPersistedObject org.apache.tapestry5.tree.DefaultTreeSelectionModel<T>
T
- type of nodepublic class DefaultTreeSelectionModel<T>
Default implementation of TreeSelectionModel
. This is simply a wrapper around a set of node ids.
Constructor Summary | |
---|---|
DefaultTreeSelectionModel()
|
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. |
Methods inherited from class org.apache.tapestry5.BaseOptimizedSessionPersistedObject |
---|
checkAndResetDirtyMarker, markDirty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTreeSelectionModel()
Method Detail |
---|
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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |