java.lang.Object | |
↳ | org.apache.myfaces.tobago.model.ExpandedState |
Manages the expanded state of an tree.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new state object to store which nodes of a tree are expanded and collapsed in a view.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Collapses all nodes that level are higher or equals the parameter level.
| |||||||||||
Collapses a single node.
| |||||||||||
Collapses a single node.
| |||||||||||
Collapses a nodes of the tree.
| |||||||||||
Collapses a nodes of the tree.
| |||||||||||
Expands all nodes that level are lower or equals the parameter level.
| |||||||||||
Expands a single node.
| |||||||||||
Expands a single node.
| |||||||||||
Expands a nodes of the tree.
| |||||||||||
Checks if a node is expanded.
| |||||||||||
Checks if a node is expanded.
| |||||||||||
Resets the state to the defaults.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new state object to store which nodes of a tree are expanded and collapsed in a view.
defaultExpandedLevels | All nodes up to this level are expanded by default. |
---|
Collapses all nodes that level are higher or equals the parameter level.
level | The level to expand. |
---|
Collapses a single node.
path | The path of the node to collapse. |
---|
Collapses a nodes of the tree.
Collapses a nodes of the tree. The root node will be expanded.
Expands all nodes that level are lower or equals the parameter level.
level | The level to expand. |
---|
Expands a single node.
path | The path of the node to expand. |
---|
Expands a nodes of the tree.
Checks if a node is expanded.
node | The node to check. |
---|
Checks if a node is expanded.
path | The path of the node to check. |
---|
Resets the state to the defaults. After this call, the nodes with level smaller than defaultExpandedLevels are expanded, the other ones are collapsed.