public abstract class AbstractHeaderRenderStrategy extends Object implements IHeaderRenderStrategy
Constructor and Description |
---|
AbstractHeaderRenderStrategy()
Construct.
|
Modifier and Type | Method and Description |
---|---|
static IHeaderRenderStrategy |
get() |
protected void |
renderApplicationLevelHeaders(HtmlHeaderContainer headerContainer)
Render the application level headers
|
protected abstract void |
renderChildHeaders(HtmlHeaderContainer headerContainer,
Component rootComponent)
Render the child hierarchy headers.
|
void |
renderHeader(HtmlHeaderContainer headerContainer,
HtmlHeaderContainer.HeaderStreamState headerStreamState,
Component rootComponent)
Implements the render strategy
|
protected void |
renderRootComponent(HtmlHeaderContainer headerContainer,
HtmlHeaderContainer.HeaderStreamState headerStreamState,
Component rootComponent)
Render the root component (e.g.
|
public static IHeaderRenderStrategy get()
public void renderHeader(HtmlHeaderContainer headerContainer, HtmlHeaderContainer.HeaderStreamState headerStreamState, Component rootComponent)
IHeaderRenderStrategy
renderHeader
in interface IHeaderRenderStrategy
headerContainer
- The HeaderContainer associated to the responseheaderStreamState
- the header section of the page, when null, this section will not be renderedrootComponent
- The root component (e.g. Page) to start the render processprotected void renderRootComponent(HtmlHeaderContainer headerContainer, HtmlHeaderContainer.HeaderStreamState headerStreamState, Component rootComponent)
headerContainer
- headerStreamState
- rootComponent
- protected abstract void renderChildHeaders(HtmlHeaderContainer headerContainer, Component rootComponent)
headerContainer
- rootComponent
- protected final void renderApplicationLevelHeaders(HtmlHeaderContainer headerContainer)
headerContainer
- Copyright © 2006–2016 Apache Software Foundation. All rights reserved.