|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.custom.tree2.TreeModelBase
public class TreeModelBase
Model class for the tree component. It provides random access to nodes in a tree
made up of instances of the TreeNode class.
| Field Summary |
|---|
| Fields inherited from interface org.apache.myfaces.custom.tree2.TreeModel |
|---|
SEPARATOR |
| Constructor Summary | |
|---|---|
TreeModelBase(TreeNode root)
Constructor |
|
| Method Summary | |
|---|---|
TreeNode |
getNodeById(String nodeId)
|
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()
|
TreeWalker |
getTreeWalker()
Gets the TreeWalker associated with the model. |
boolean |
isLastChild(String nodeId)
Indicates whether or not the specified TreeNode is the last child in the List
of children. |
void |
setTreeState(TreeState treeState)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeModelBase(TreeNode root)
root - The root TreeNode| Method Detail |
|---|
public TreeState getTreeState()
getTreeState in interface TreeModelpublic void setTreeState(TreeState treeState)
setTreeState in interface TreeModelpublic String[] getPathInformation(String nodeId)
TreeNodes in the path to
the specified node. The path information will be an array of 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.
getPathInformation in interface TreeModelnodeId - The id of the node for whom the path information is needed.
public boolean isLastChild(String nodeId)
TreeNode is the last child in the List
of children. If the node id provided corresponds to the root node, this returns true.
isLastChild in interface TreeModelnodeId - The ID of the node to check
public TreeNode getNodeById(String nodeId)
getNodeById in interface TreeModelpublic TreeWalker getTreeWalker()
TreeModel
getTreeWalker in interface TreeModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||