org.apache.myfaces.custom.tree2

Interface TreeState

public interface TreeState extends Serializable

Method Summary
voidcollapsePath(String[] nodePath)
Collapse the complete path specified.
voidexpandPath(String[] nodePath)
Expand the complete path specified.
booleanisNodeExpanded(String nodeId)
Indicates whether or not the specified TreeNode is expanded.
booleanisTransient()
Getter for transient property.
voidsetTransient(boolean trans)
Setter for transient property
voidtoggleExpanded(String nodeId)
Toggle the expanded state of the specified TreeNode.

Method Detail

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.

Parameters: 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.

Parameters: nodePath The path to be expanded.

isNodeExpanded

public boolean isNodeExpanded(String nodeId)
Indicates whether or not the specified TreeNode is expanded.

Parameters: nodeId The id of the node in question.

Returns: If the node is expanded.

isTransient

public boolean isTransient()
Getter for transient property.

Returns: boolean

setTransient

public void setTransient(boolean trans)
Setter for transient property

Parameters: trans boolean

toggleExpanded

public void toggleExpanded(String nodeId)
Toggle the expanded state of the specified TreeNode.

Parameters: nodeId The id of the node whose expanded state should be toggled.