|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMarkupSourcingStrategy
Markup sourcing strategies determine whether a Component behaves like a "Panel" pulling its Markup from an associated Markup file, or like a Fragment pulling it from a another components Markup.
Method Summary | |
---|---|
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.renderHead(HtmlHeaderContainer) and allows
the strategy to contribute to the <head> section of the response. |
Method Detail |
---|
void renderHead(Component component, HtmlHeaderContainer container)
Component.renderHead(HtmlHeaderContainer)
and allows
the strategy to contribute to the <head> section of the response.
component
- The component calling the strategycontainer
- Component.renderHead(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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |