|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.markup.renderStrategy.AbstractHeaderRenderStrategy
org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy
public class ChildFirstHeaderRenderStrategy
THIS IS EXPERIMENTAL ONLY. YOU MUST NOT USE IT IN YOUR APPLICATION. SOME WICKET CORE COMPONENT WILL NOT WORK PROPERLY. THIS CLASS MAY AS WELL BE REMOVED AGAIN. This a header render strategy which sequence is child->parent->root, and thus inverse to Wicket's default implementation. To your application it means, that parent containers can effectively replace child contributions, since their contribution is added to the markup after the child ones. Please note that irrespective of the render strategy, if the same header content (e.g. CSS file) gets added twice to the header, only the first will be rendered and the 2nd will skipped.
Constructor Summary | |
---|---|
ChildFirstHeaderRenderStrategy()
Construct. |
Method Summary | |
---|---|
protected void |
renderChildHeaders(HtmlHeaderContainer headerContainer,
Component rootComponent)
Render the child hierarchy headers. |
void |
renderHeader(HtmlHeaderContainer headerContainer,
Component rootComponent)
Implements the render strategy |
protected boolean |
stopTraversingAfter(Component component)
In case you need mixed strategies depending on the component, you can subclass this method and return true when traversing shall stop of that specific component. |
protected boolean |
stopTraversingBefore(Component component)
In case you need mixed strategies depending on the component, you can subclass this method and return true when traversing shall stop of that specific component. |
Methods inherited from class org.apache.wicket.markup.renderStrategy.AbstractHeaderRenderStrategy |
---|
addListener, get, removeListener, renderApplicationLevelHeaders, renderRootComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChildFirstHeaderRenderStrategy()
Method Detail |
---|
public void renderHeader(HtmlHeaderContainer headerContainer, Component rootComponent)
IHeaderRenderStrategy
renderHeader
in interface IHeaderRenderStrategy
renderHeader
in class AbstractHeaderRenderStrategy
AbstractHeaderRenderStrategy.renderHeader(org.apache.wicket.markup.html.internal.HtmlHeaderContainer,
org.apache.wicket.Component)
protected void renderChildHeaders(HtmlHeaderContainer headerContainer, Component rootComponent)
renderChildHeaders
in class AbstractHeaderRenderStrategy
headerContainer
- rootComponent
- protected boolean stopTraversingBefore(Component component)
component
-
protected boolean stopTraversingAfter(Component component)
component
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |