org.apache.wicket.markup.renderStrategy
Class ParentFirstHeaderRenderStrategy
java.lang.Object
org.apache.wicket.markup.renderStrategy.AbstractHeaderRenderStrategy
org.apache.wicket.markup.renderStrategy.ParentFirstHeaderRenderStrategy
- All Implemented Interfaces:
- IHeaderRenderStrategy
public class ParentFirstHeaderRenderStrategy
- extends AbstractHeaderRenderStrategy
This is Wicket's default header render strategy which uses
MarkupContainer#visitChildren(org.apache.wicket.IVisitor)
to traverse the hierarchy to
render the children headers.
Since child contributions are added to the markup after the parent contributions, children may
replace / modify existing settings.
Note that in order to mix different render strategies, a "stop traversal" mechanism has been
implemented. It allows you to use strategy A for Wicket core components and strategy B for your
own.
- Author:
- Juergen Donnerstag
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParentFirstHeaderRenderStrategy
public ParentFirstHeaderRenderStrategy()
- Construct.
renderChildHeaders
protected void renderChildHeaders(HtmlHeaderContainer headerContainer,
Component rootComponent)
- Render the child hierarchy headers.
- Specified by:
renderChildHeaders
in class AbstractHeaderRenderStrategy
- Parameters:
headerContainer
- rootComponent
-
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.