|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.internal.HtmlHeaderContainer
public class HtmlHeaderContainer
The HtmlHeaderContainer is automatically created and added to the component hierarchy by a HtmlHeaderResolver instance. HtmlHeaderContainer tries to handle/render the >head> tag and its body. However depending on the parent component, the behavior must be different. E.g. if parent component is a Page all components of the page's hierarchy must be asked if they have something to contribute to the <head> section of the html response. If yes, it must immediately be rendered.
<head> regions may contain additional wicket components, which can be added by means of add(Component) as usual.
<wicket:head> tags are handled by simple WebMarkupContainers also created by a HtmlHeaderResolver.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor<T extends Component>, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
HtmlHeaderContainer(java.lang.String id)
Construct |
Method Summary | |
---|---|
IHeaderResponse |
getHeaderResponse()
Returns the header response. |
boolean |
isTransparentResolver()
Some MarkupContainers (e.g. |
protected IHeaderResponse |
newHeaderResponse()
Factory method for creating header response |
boolean |
okToRenderComponent(java.lang.String scope,
java.lang.String id)
Check if the header component is ok to render within the scope given. |
protected void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
First render the body of the component. |
protected void |
onDetach()
Called to allow a component to detach resources after use. |
protected boolean |
renderOpenAndCloseTags()
|
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getMarkupType, getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HtmlHeaderContainer(java.lang.String id)
Component.Component(String)
Method Detail |
---|
protected final void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
onComponentTagBody
in class MarkupContainer
markupStream
- The markup streamopenTag
- The open tag for the bodyMarkupContainer.onComponentTagBody(org.apache.wicket.markup.MarkupStream,
org.apache.wicket.markup.ComponentTag)
protected boolean renderOpenAndCloseTags()
public boolean isTransparentResolver()
MarkupContainer
isTransparentResolver
in class MarkupContainer
MarkupContainer.isTransparentResolver()
public boolean okToRenderComponent(java.lang.String scope, java.lang.String id)
scope
- The scope of the header componentid
- The component's id
protected void onDetach()
Component
onDetach
in class Component
Component.onDetach()
protected IHeaderResponse newHeaderResponse()
public IHeaderResponse getHeaderResponse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |