Package thing

Class ComponentWalker

java.lang.Object
thing.ComponentWalker

public class ComponentWalker extends Object
A depth-first tree walker for Thinlet components.
Author:
Dirk Moebius
  • Constructor Details

    • ComponentWalker

      public ComponentWalker()
      Create a new ComponentWalker.
  • Method Details

    • walk

      public boolean walk(thinlet.Thinlet thinlet, Object component, ComponentWalker.Visitor visitor)
      Walk the component hierarchy starting at component.
      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:
      false if the tree walk has ended prematurely before all children have been visited, because the visitor returned false on a call to ComponentWalker.Visitor.visit(Object,int).