Class DeepChildFirstVisitor
- java.lang.Object
-
- org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor
-
-
Constructor Summary
Constructors Constructor Description DeepChildFirstVisitor()
Construct.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
component(Component component, IVisit<Void> visit)
Called at each object in a visit.abstract boolean
preCheck(Component component)
In order to find the deepest component, we traverse downwards starting from the root (e.g.Visit<Void>
visit(Component rootComponent)
Render the child hierarchy headers.Visit<Void>
visit(Component rootComponent, Visit<Void> visit)
Render the child hierarchy headers.
-
-
-
Constructor Detail
-
DeepChildFirstVisitor
public DeepChildFirstVisitor()
Construct.
-
-
Method Detail
-
visit
public final Visit<Void> visit(Component rootComponent)
Render the child hierarchy headers.- Parameters:
rootComponent
-- Returns:
- The object return by component()
-
visit
public final Visit<Void> visit(Component rootComponent, Visit<Void> visit)
Render the child hierarchy headers.- Parameters:
rootComponent
-visit
-- Returns:
- The object return by component()
-
component
public abstract void component(Component component, IVisit<Void> visit)
Description copied from interface:IVisitor
Called at each object in a visit.
-
preCheck
public abstract boolean preCheck(Component component)
In order to find the deepest component, we traverse downwards starting from the root (e.g. Page). However, once a component is not disabled (preCheck() returns false), iteration will stop and traversal continues with the sibling.- Parameters:
component
- The component to be tested- Returns:
- True, if component is enabled
-
-