com.dynamide.util
Interface ICompositeWalker

All Known Implementing Classes:
CompositeAbstract.DumpWalker, ExpansionLog.LinkWalker, TableTree.CompositeToList

public interface ICompositeWalker

Implement this interface to receive a callback on each visit of a Composite node in the tree of nodes owned by Composite, during one of the walks (walkPreOrder and walkPostOrder) provided by Composite.


Field Summary
static int POSTORDER
           
static int PREORDER
           
 
Method Summary
 boolean onNode(IComposite node)
           
 

Field Detail

PREORDER

static final int PREORDER
See Also:
Constant Field Values

POSTORDER

static final int POSTORDER
See Also:
Constant Field Values
Method Detail

onNode

boolean onNode(IComposite node)
Returns:
true if you wish the Composite walk to continue for child nodes in a PREORDER walk; POSTORDER walks are unaffected, of course, since by the time the parent node is visited, it is too late, as the children are visited first; there is no way to skip visiting subsequent children.


Copyright 2001-2013 DYNAMIDE.COM. All Rights Reserved.