Package thing

Interface ComponentWalker.Visitor

Enclosing class:
ComponentWalker

public static interface ComponentWalker.Visitor
A visitor interface for the ComponentWalker.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    leave(Object component, int depth)
    Called when the tree walker has visited all childs of the component.
    boolean
    visit(Object component, int depth)
    Called if the tree walker visits a new component.
  • Method Details

    • visit

      boolean visit(Object component, int depth)
      Called if the tree walker visits a new component.
      Returns:
      if false, the tree walk will stop at the given component and not visit any further components.
    • leave

      void leave(Object component, int depth)
      Called when the tree walker has visited all childs of the component.