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 WebMarkupContainers 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_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, 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.
|
protected void |
onAfterRender()
Called just after a component is rendered.
|
void |
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
First render the body of the component.
|
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() |
findChildComponent, internalRenderHead, resolvegetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, 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, wrappublic HtmlHeaderContainer(String id)
Component.Component(String)public final void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
onComponentTagBody in class MarkupContainermarkupStream - 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 onAfterRender()
ComponentonAfterRender in class Componentprotected 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 ComponentMarkupContainer.getMarkup(Component)Copyright © 2006–2021 Apache Software Foundation. All rights reserved.