Package thing
Class ComponentWalker
java.lang.Object
thing.ComponentWalker
A depth-first tree walker for Thinlet components.
- Author:
- Dirk Moebius
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanwalk(thinlet.Thinlet thinlet, Object component, ComponentWalker.Visitor visitor) Walk the component hierarchy starting atcomponent.
-
Constructor Details
-
ComponentWalker
public ComponentWalker()Create a new ComponentWalker.
-
-
Method Details
-
walk
Walk the component hierarchy starting atcomponent.- Parameters:
thinlet- the Thinlet that contains the components.component- where to start the walk.visitor- a visitor that is called each time a new component is visited.- Returns:
falseif the tree walk has ended prematurely before all children have been visited, because the visitor returnedfalseon a call toComponentWalker.Visitor.visit(Object,int).
-