|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.netanel.swt.matrix.Grouping.NodeVisitor
public abstract static class Grouping.NodeVisitor
Traverses the given node or array of nodes and all the related nodes at the lower levels. The order of visiting is parent first then children.
Implements the Visitor pattern.
Field Summary | |
---|---|
protected Grouping.Node |
node
Node being visited |
protected boolean |
stop
Stops the traversing if set to true |
protected boolean |
stopBranch
Stops traversing deeper into the current branch if set to true |
Constructor Summary | |
---|---|
Grouping.NodeVisitor()
|
Method Summary | |
---|---|
Grouping.Node |
get()
Returns the latest visited node. |
Grouping.NodeVisitor |
traverse()
Can encapsulate the traversal starting node or nodes. |
Grouping.NodeVisitor |
traverse(Grouping.Node node)
Traverses starting from the given node. |
Grouping.NodeVisitor |
traverse(java.util.List<Grouping.Node> nodes)
Traverses starting from the given nodes. |
protected void |
visitAfter(Grouping.Node node)
Method executed after traversing children |
protected void |
visitBefore(Grouping.Node node)
Method executed before traversing children |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Grouping.Node node
protected boolean stop
true
protected boolean stopBranch
true
Constructor Detail |
---|
public Grouping.NodeVisitor()
Method Detail |
---|
protected void visitBefore(Grouping.Node node)
node
- parent for the children to traverseprotected void visitAfter(Grouping.Node node)
node
- parent for the children to traversepublic Grouping.Node get()
public Grouping.NodeVisitor traverse(Grouping.Node node)
node
- node to traverse
public Grouping.NodeVisitor traverse(java.util.List<Grouping.Node> nodes)
nodes
- nodes to traverse
public Grouping.NodeVisitor traverse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |