org.apache.myfaces.custom.tree2
Class TreeStateBase
java.lang.Object
org.apache.myfaces.custom.tree2.TreeStateBase
- Serializable, TreeState
public class TreeStateBase
extends java.lang.Object
collapsePath
public void collapsePath(String[] nodePath)
Collapse the complete path specified. If any node in the path is already collapsed,
that node should be left as it is.
- collapsePath in interface TreeState
nodePath
- The path to be collapsed.
expandPath
public void expandPath(String[] nodePath)
Expand the complete path specified. If any node in the path is already expanded,
that node should be left as it is.
- expandPath in interface TreeState
nodePath
- The path to be expanded.
isNodeExpanded
public boolean isNodeExpanded(String nodeId)
Indicates whether or not the specified
TreeNode
is expanded.
- isNodeExpanded in interface TreeState
nodeId
- The id of the node in question.
isTransient
public boolean isTransient()
Getter for transient property.
- isTransient in interface TreeState
setTransient
public void setTransient(boolean trans)
Setter for transient property
- setTransient in interface TreeState
toggleExpanded
public void toggleExpanded(String nodeId)
Toggle the expanded state of the specified
TreeNode
.
- toggleExpanded in interface TreeState
nodeId
- The id of the node whose expanded state should be toggled.