Class DefaultMarkupSourcingStrategy
- java.lang.Object
-
- org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy
-
- org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy
-
- All Implemented Interfaces:
IMarkupSourcingStrategy
public final class DefaultMarkupSourcingStrategy extends AbstractMarkupSourcingStrategy
This is a no-op sourcing strategy implementing the default behavior for most components.- Author:
- Juergen Donnerstag
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultMarkupSourcingStrategy
get()
IMarkupFragment
getMarkup(MarkupContainer container, Component child)
Get the markup for the child component, which is assumed to be a child of 'container'.void
onComponentTag(Component component, ComponentTag tag)
Nothing to add to the response by defaultvoid
onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
Invoke the component's onComponentTagBody().-
Methods inherited from class org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy
renderHead, searchInNestedTransparentResolvers, searchMarkupInTransparentResolvers
-
-
-
-
Method Detail
-
get
public static DefaultMarkupSourcingStrategy get()
- Returns:
- A singleton of the strategy
-
onComponentTag
public void onComponentTag(Component component, ComponentTag tag)
Nothing to add to the response by default- Specified by:
onComponentTag
in interfaceIMarkupSourcingStrategy
- Overrides:
onComponentTag
in classAbstractMarkupSourcingStrategy
- Parameters:
component
- The component calling the strategy- See Also:
Component.onComponentTag(ComponentTag)
-
onComponentTagBody
public void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
Invoke the component's onComponentTagBody().- Specified by:
onComponentTagBody
in interfaceIMarkupSourcingStrategy
- Overrides:
onComponentTagBody
in classAbstractMarkupSourcingStrategy
- Parameters:
component
- The component calling the strategy- See Also:
Component.onComponentTagBody(MarkupStream, ComponentTag)
-
getMarkup
public IMarkupFragment getMarkup(MarkupContainer container, Component child)
Get the markup for the child component, which is assumed to be a child of 'container'.- Specified by:
getMarkup
in interfaceIMarkupSourcingStrategy
- Specified by:
getMarkup
in classAbstractMarkupSourcingStrategy
- Parameters:
container
- The parent containing the child. This is not the direct parent, transparent componentresolver
may be in the hierarchy between.child
- The component to find the markup for.- Returns:
- the markup fragment for the child, or
null
. - See Also:
MarkupContainer.getMarkup(Component)
-
-