| wicket.extensions.markup.html.tree.ITreeState
All known Subclasses: wicket.extensions.markup.html.tree.DefaultTreeState,
ITreeState | public interface ITreeState (Code) | | Tree state holds information about a tree such as which nodes are expanded /
collapsed and which nodes are selected, It can also fire callbacks on
listener in case any of the information changed.
author: Matej Knopp |
addTreeStateListener | void addTreeStateListener(ITreeStateListener l)(Code) | | Adds a tree state listener. On state change events on the listener are
fired.
Parameters: l - Listener to add |
collapseAll | void collapseAll()(Code) | | Collapses all nodes of the tree.
|
collapseNode | void collapseNode(TreeNode node)(Code) | | Collapses the given node.
Parameters: node - Node to collapse |
expandAll | void expandAll()(Code) | | Expands all nodes of the tree.
|
expandNode | void expandNode(TreeNode node)(Code) | | Expands the given node.
Parameters: node - Node to expand |
getSelectedNodes | Collection getSelectedNodes()(Code) | | Returns the collection of all selected nodes.
The collection of selected nodes |
isAllowSelectMultiple | boolean isAllowSelectMultiple()(Code) | | Returns whether multiple nodes can be selected.
True if mutliple nodes can be selected |
isNodeExpanded | boolean isNodeExpanded(TreeNode node)(Code) | | Returns true if the given node is expanded.
Parameters: node - The node to inspect True if the node is expanded |
isNodeSelected | boolean isNodeSelected(TreeNode node)(Code) | | Returns true if the given node is selected, false otherwise.
Parameters: node - The node to inspect True if the node is selected |
removeTreeStateListener | void removeTreeStateListener(ITreeStateListener l)(Code) | | Removes a tree state listener.
Parameters: l - The listener to remove |
selectNode | void selectNode(TreeNode node, boolean selected)(Code) | | Marks given node as selected (or unselected) according to the selected
value.
If tree is in single selection mode and a new node is selected, old node
is automatically unselected (and the event is fired on listeners).
Parameters: node - The node to select or deselect Parameters: selected - If true, the node will be selected, otherwise, the node willbe unselected |
setAllowSelectMultiple | void setAllowSelectMultiple(boolean value)(Code) | | Sets whether multiple nodes can be selected.
Parameters: value - If true, multiple nodes can be selected. If false, only onenode at a time can be selected |
|
|