|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy
public abstract class AbstractMarkupSourcingStrategy
Implements boiler plate as needed by most markup sourcing strategies.
Constructor Summary | |
---|---|
AbstractMarkupSourcingStrategy()
|
Method Summary | |
---|---|
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)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMarkupSourcingStrategy()
Method Detail |
---|
public void onComponentTag(Component component, ComponentTag tag)
onComponentTag
in interface IMarkupSourcingStrategy
component
- The component calling the strategyComponent.onComponentTag(ComponentTag)
public void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
It's perfectly valid to call component.onComponentTagBody(markupStream, openTag)
from insight this method.
onComponentTagBody
in interface IMarkupSourcingStrategy
component
- The component calling the strategyComponent.onComponentTagBody(MarkupStream, ComponentTag)
public abstract IMarkupFragment getMarkup(MarkupContainer container, Component child)
getMarkup
in interface IMarkupSourcingStrategy
container
- The parent containing the child.child
- The componen to find the markup for.
MarkupContainer.getMarkup(Component)
public void renderHead(Component component, HtmlHeaderContainer container)
Component.renderHead(HtmlHeaderContainer)
and allows
the strategy to contribute to the <head> section of the response.
renderHead
in interface IMarkupSourcingStrategy
component
- The component calling the strategyComponent.renderHead(HtmlHeaderContainer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |