|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.markup.html.WebMarkupContainer
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 wicket.Component |
|---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary |
|---|
| Fields inherited from class wicket.Component |
|---|
ENABLE, 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 | |
|---|---|
boolean |
isTransparentResolver()
Some MarkupContainers (e.g. |
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. |
| Methods inherited from class wicket.markup.html.WebMarkupContainer |
|---|
getMarkupType, getWebPage |
| Methods inherited from class wicket.MarkupContainer |
|---|
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, internalDetach, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, 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 MarkupContainermarkupStream - The markup streamopenTag - The open tag for the bodyMarkupContainer.onComponentTagBody(wicket.markup.MarkupStream,
wicket.markup.ComponentTag)public boolean isTransparentResolver()
MarkupContainer
isTransparentResolver in class MarkupContainerMarkupContainer.isTransparentResolver()
public final 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||