public abstract class AbstractMarkupSourcingStrategy extends Object implements IMarkupSourcingStrategy
| Constructor and Description |
|---|
AbstractMarkupSourcingStrategy()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
abstract IMarkupFragment |
getMarkup(MarkupContainer container,
Component child)
Will replace the respective component's method.
|
void |
onComponentTag(Component component,
ComponentTag tag)
Make sure we open up open-close tags to open-body-close
|
void |
onComponentTagBody(Component component,
MarkupStream markupStream,
ComponentTag openTag)
Skip the components body which is expected to be raw markup only (no wicket components).
|
void |
renderHead(Component component,
HtmlHeaderContainer container)
Empty.
|
protected IMarkupFragment |
searchInNestedTransparentResolvers(IMarkupFragment containerMarkup,
Component child,
List<MarkupContainer> componentResolvers)
Search for the markup of a child that might be nested inside
transparent siblings.
|
protected IMarkupFragment |
searchMarkupInTransparentResolvers(MarkupContainer container,
IMarkupFragment containerMarkup,
Component child)
If the child has not been directly added to the container, but via a
TransparentWebMarkupContainer, then we are in trouble.
|
public AbstractMarkupSourcingStrategy()
public abstract IMarkupFragment getMarkup(MarkupContainer container, Component child)
IMarkupSourcingStrategygetMarkup in interface IMarkupSourcingStrategycontainer - The parent containing the child. This is not the direct parent, transparent
component resolver may be in the hierarchy between.child - The component to find the markup for.null.MarkupContainer.getMarkup(Component)protected IMarkupFragment searchMarkupInTransparentResolvers(MarkupContainer container, IMarkupFragment containerMarkup, Component child)
container - the parent container.containerMarkup - the markup of the container.child - The component to find the markup for.null.protected IMarkupFragment searchInNestedTransparentResolvers(IMarkupFragment containerMarkup, Component child, List<MarkupContainer> componentResolvers)
<div wicket:id="outerTransparent">
<div wicket:id="innerTransparent">
<span wicket:id="childComponent"></span>
</div>
</div>
containerMarkup - the markup of the parent container.child - The component to find the markup for.componentResolvers - the transparent siblingsnull.public void onComponentTag(Component component, ComponentTag tag)
onComponentTag in interface IMarkupSourcingStrategycomponent - The component calling the strategyComponent.onComponentTag(ComponentTag)public void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
onComponentTagBody in interface IMarkupSourcingStrategycomponent - The component calling the strategyComponent.onComponentTagBody(MarkupStream, ComponentTag)public void renderHead(Component component, HtmlHeaderContainer container)
renderHead in interface IMarkupSourcingStrategycomponent - The component calling the strategyComponent.internalRenderHead(HtmlHeaderContainer)Copyright © 2006–2021 Apache Software Foundation. All rights reserved.