org.apache.myfaces.custom.tree2
public class TreeModelBase extends Object implements TreeModel
Version: $Revision: 168205 $ $Date: 2005-05-04 18:59:21 -0400 (Wed, 04 May 2005) $
Constructor Summary | |
---|---|
TreeModelBase(TreeNode root)
Constructor |
Method Summary | |
---|---|
TreeNode | getNode()
Gets the current TreeNode or null if no node ID is selected. |
String[] | getPathInformation(String nodeId)
Gets an array of String containing the ID's of all of the TreeNodes in the path to
the specified node. |
TreeState | getTreeState() |
boolean | isLastChild(String nodeId)
Indicates whether or not the specified TreeNode is the last child in the List
of children. |
void | setNodeId(String nodeId)
Sets the current TreeNode to the specified node ID, which is a colon-separated list
of node indexes. |
void | setTreeState(TreeState treeState) |
Parameters: root The root TreeNode
String
objects
representing node ID's. The array will starting with the ID of the root node and end with
the ID of the specified node.
Parameters: nodeId The id of the node for whom the path information is needed.
Returns: String[]
List
of children. If the node id provided corresponds to the root node, this returns true
.
Parameters: nodeId The ID of the node to check
Returns: boolean
Parameters: nodeId The id of the node to set