Class Border.BorderBodyContainer
- java.lang.Object
-
- org.apache.wicket.Component
-
- org.apache.wicket.MarkupContainer
-
- org.apache.wicket.markup.html.WebMarkupContainer
-
- org.apache.wicket.markup.html.border.Border.BorderBodyContainer
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<Component>,IEventSink,IEventSource,IFeedbackContributor,IConverterLocator,IMetadataContext<java.io.Serializable,Component>,IQueueRegion,IHeaderContributor,IRequestableComponent,org.apache.wicket.util.IHierarchical<Component>,org.apache.wicket.util.io.IClusterable
- Enclosing class:
- Border
public class Border.BorderBodyContainer extends WebMarkupContainer implements IQueueRegion
The container to be associated with the <wicket:body> tag- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanrendering-
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
-
-
Constructor Summary
Constructors Constructor Description BorderBodyContainer(java.lang.String id)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentfindComponentToDequeue(ComponentTag tag)Queries this container to find a child that can be dequeued that matches the specified tag.IMarkupFragmentgetMarkup()Get the <wicket:body> markup from the body's parent containerIMarkupFragmentgetMarkup(Component child)Get the child markup which must be in between the <span wicktet:id="myBorder"> tagsDequeueContextnewDequeueContext()Creates a newDequeueContextthat will be used to dequeue children of this region.protected voidonComponentTag(ComponentTag tag)Processes the component tag.voidonComponentTagBody(MarkupStream markupStream, ComponentTag openTag)Handle the container's body.protected voidonRender()Implementation that renders this component.-
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
-
Methods inherited from class org.apache.wicket.MarkupContainer
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, onDetach, onInitialize, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
-
Methods inherited from class org.apache.wicket.Component
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, 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, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.IQueueRegion
dequeue, getRegionMarkup
-
-
-
-
Method Detail
-
onComponentTag
protected void onComponentTag(ComponentTag tag)
Description copied from class:ComponentProcesses the component tag. Overrides of this method most likely should call the super implementation.- Overrides:
onComponentTagin classComponent- Parameters:
tag- Tag to modify
-
onComponentTagBody
public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
Description copied from class:MarkupContainerHandle the container's body. If your override of this method does not advance the markup stream to the close tag for the openTag, a runtime exception will be thrown by the framework.- Overrides:
onComponentTagBodyin classMarkupContainer- Parameters:
markupStream- The markup streamopenTag- The open tag for the body
-
onRender
protected void onRender()
Description copied from class:ComponentImplementation that renders this component.- Overrides:
onRenderin classMarkupContainer
-
getMarkup
public IMarkupFragment getMarkup()
Get the <wicket:body> markup from the body's parent container- Overrides:
getMarkupin classComponent- Returns:
- The markup fragment
- See Also:
MarkupContainer.getMarkup(Component)
-
getMarkup
public IMarkupFragment getMarkup(Component child)
Get the child markup which must be in between the <span wicktet:id="myBorder"> tags- Overrides:
getMarkupin classMarkupContainer- Parameters:
child- The child component. If null, the container's markup will be returned. See Border, Panel or Enclosure where getMarkup(null) != getMarkup().- Returns:
- The child's markup
- See Also:
Component.getMarkup()
-
newDequeueContext
public DequeueContext newDequeueContext()
Description copied from interface:IQueueRegionCreates a newDequeueContextthat will be used to dequeue children of this region. Usually containers will create a context with their associated markup by getting it viaMarkupContainer.getAssociatedMarkup(), but components that do not render markup in a standard way (such as repeaters and borders) may choose to override this method to implement custom behavior for the dequeueing process.- Specified by:
newDequeueContextin interfaceIQueueRegion- Overrides:
newDequeueContextin classMarkupContainer- See Also:
IQueueRegion.newDequeueContext()
-
findComponentToDequeue
public Component findComponentToDequeue(ComponentTag tag)
Description copied from class:MarkupContainerQueries this container to find a child that can be dequeued that matches the specified tag. The default implementation will check if there is a component in the queue that has the same id as a tag, but sometimes custom tags can be dequeued and in those situations this method should be overridden.- Overrides:
findComponentToDequeuein classMarkupContainer- Returns:
-
-