Class DeepChildFirstVisitor
java.lang.Object
org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor
- Author:
- Juergen Donnerstag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Called at each object in a visit.abstract boolean
In order to find the deepest component, we traverse downwards starting from the root (e.g.Render the child hierarchy headers.Render the child hierarchy headers.
-
Constructor Details
-
DeepChildFirstVisitor
public DeepChildFirstVisitor()Construct.
-
-
Method Details
-
visit
Render the child hierarchy headers.- Parameters:
rootComponent
-- Returns:
- The object return by component()
-
visit
Render the child hierarchy headers.- Parameters:
rootComponent
-visit
-- Returns:
- The object return by component()
-
component
Description copied from interface:IVisitor
Called at each object in a visit. -
preCheck
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
-