public interface TreeExpansionModel<T>
TreeModel
are currently expanded. The default
implementation simply stores a set of unique node
ids to identify expanded nodes. The expansion model is updated whenever folders are expanded or
collapsed on the client side.Tree
Modifier and Type | Method and Description |
---|---|
void |
clear()
Marks all nodes as collapsed.
|
boolean |
isExpanded(TreeNode<T> node)
Returns true if the node has been previously expanded.
|
void |
markCollapsed(TreeNode<T> node)
Marks the node as collapsed (not expanded).
|
void |
markExpanded(TreeNode<T> node)
Marks the node as expanded.
|
boolean isExpanded(TreeNode<T> node)
node
- node to check for expansionvoid markExpanded(TreeNode<T> node)
void markCollapsed(TreeNode<T> node)
void clear()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.