|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.custom.tree2.TreeWalkerBase
public class TreeWalkerBase
A base implementation of the TreeWalker interface. Uses a simple node naming
scheme of "0" for the root node, "0:0" for the first child, "0:1" for the second child, etc.
| Constructor Summary | |
|---|---|
TreeWalkerBase()
|
|
| Method Summary | |
|---|---|
String |
getRootNodeId()
Returns the id of the root node. |
boolean |
isCheckState()
Getter for the check state property. |
boolean |
next()
Walk the tree and set the current node to the next node. |
void |
reset()
Reset the walker so the tree can be walked again starting from the root. |
void |
setCheckState(boolean checkState)
Setter for the check state property. |
void |
setTree(Tree tree)
This method allows the renderer to pass a reference to the tree object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeWalkerBase()
| Method Detail |
|---|
public void setTree(Tree tree)
TreeWalker
setTree in interface TreeWalkertree - Treepublic boolean isCheckState()
TreeWalker
isCheckState in interface TreeWalkerpublic void setCheckState(boolean checkState)
TreeWalker
setCheckState in interface TreeWalkercheckState - booleanpublic boolean next()
TreeWalker
next in interface TreeWalkerpublic String getRootNodeId()
TreeWalker
getRootNodeId in interface TreeWalkerpublic void reset()
TreeWalker
reset in interface TreeWalker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||