public class HtmlHeaderContainer extends TransparentWebMarkupContainer
<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 TransparentWebMarkupContainer
s also created by
HtmlHeaderResolver
.
Modifier and Type | Class and Description |
---|---|
static class |
HtmlHeaderContainer.HeaderStreamState
Combines the
MarkupStream with the open tag, together representing the header section
in the markup. |
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
Constructor and Description |
---|
HtmlHeaderContainer(String id)
Construct
|
Modifier and Type | Method and Description |
---|---|
IHeaderResponse |
getHeaderResponse()
Returns the header response.
|
IMarkupFragment |
getMarkup()
Get the Markup associated with the Component.
|
protected IHeaderResponse |
newHeaderResponse()
Factory method for creating header response
|
boolean |
okToRenderComponent(String scope,
String id)
Check if the header component is ok to render within the scope given.
|
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.
|
void |
renderHeaderTagBody(HtmlHeaderContainer.HeaderStreamState headerStreamState)
Renders the content of the <head> section of the page, including <wicket:head>
sections in subclasses of the page.
|
protected boolean |
renderOpenAndCloseTags() |
resolve
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
public HtmlHeaderContainer(String id)
Component.Component(String)
public final void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
onComponentTagBody
in class MarkupContainer
markupStream
- The markup streamopenTag
- The open tag for the bodypublic void renderHeaderTagBody(HtmlHeaderContainer.HeaderStreamState headerStreamState)
IHeaderResponse
.headerStreamState
- protected boolean renderOpenAndCloseTags()
public boolean okToRenderComponent(String scope, String id)
scope
- The scope of the header componentid
- The component's idprotected void onDetach()
Component
onDetach
in class MarkupContainer
protected IHeaderResponse newHeaderResponse()
public IHeaderResponse getHeaderResponse()
public IMarkupFragment getMarkup()
Component
<span wicket:id="myPanel">body</span>
. You may use
Panel/Border/Enclosure.getMarkup(null) to return the associated markup file. And
Panel/Border/Enclosure.getMarkup(child) will search the child in the appropriate markup
fragment.getMarkup
in class Component
MarkupContainer.getMarkup(Component)
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.