Package org.apache.tapestry5.tree
Interface TreeSelectionModel<T>
-
- Type Parameters:
T- type of node
- All Known Implementing Classes:
DefaultTreeSelectionModel
public interface TreeSelectionModel<T>
Tracks which leaf nodes of aTreeModelare 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.- Since:
- 5.3
- See Also:
Tree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears the selection.booleanisSelected(TreeNode<T> node)Returnstrue, if the given node is selected.voidselect(TreeNode<T> node)Selects a node.voidunselect(TreeNode<T> node)Unselects a node.
-
-
-
Method Detail
-
isSelected
boolean isSelected(TreeNode<T> node)
Returnstrue, if the given node is selected.- Parameters:
node- node to check
-
clear
void clear()
Clears the selection.
-
-