public interface IMarkupSourcingStrategy
| Modifier and Type | Method and Description |
|---|---|
IMarkupFragment |
getMarkup(MarkupContainer container,
Component child)
Will replace the respective component's method.
|
void |
onComponentTag(Component component,
ComponentTag tag)
Will be called in addition to
Component.onComponentTag(ComponentTag) and allows the
strategy to modify the component's tag or any of the tag attributes. |
void |
onComponentTagBody(Component component,
MarkupStream markupStream,
ComponentTag openTag)
Will replace the respective component's method.
|
void |
renderHead(Component component,
HtmlHeaderContainer container)
Will be called in addition to
Component.internalRenderHead(HtmlHeaderContainer) and allows
the strategy to contribute to the <head> section of the response. |
void renderHead(Component component, HtmlHeaderContainer container)
Component.internalRenderHead(HtmlHeaderContainer) and allows
the strategy to contribute to the <head> section of the response.component - The component calling the strategycontainer - Component.internalRenderHead(HtmlHeaderContainer)void onComponentTag(Component component, ComponentTag tag)
Component.onComponentTag(ComponentTag) and allows the
strategy to modify the component's tag or any of the tag attributes.component - The component calling the strategytag - Component.onComponentTag(ComponentTag)void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
It's perfectly valid to call component.onComponentTagBody(markupStream, openTag)
from inside this method.
component - The component calling the strategymarkupStream - openTag - Component.onComponentTagBody(MarkupStream, ComponentTag)IMarkupFragment getMarkup(MarkupContainer container, Component child)
container - 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)Copyright © 2006–2021 Apache Software Foundation. All rights reserved.