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 DefaultMarkupSourcingStrategyget()IMarkupFragmentgetMarkup(MarkupContainer container, Component child)Get the markup for the child component, which is assumed to be a child of 'container'.voidonComponentTag(Component component, ComponentTag tag)Nothing to add to the response by defaultvoidonComponentTagBody(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:
onComponentTagin interfaceIMarkupSourcingStrategy- Overrides:
onComponentTagin 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:
onComponentTagBodyin interfaceIMarkupSourcingStrategy- Overrides:
onComponentTagBodyin 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:
getMarkupin interfaceIMarkupSourcingStrategy- Specified by:
getMarkupin classAbstractMarkupSourcingStrategy- Parameters:
container- The parent containing the child. This is not the direct parent, transparent componentresolvermay 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)
-
-