Module org.apache.wicket.core
Class DefaultMarkupSourcingStrategy
java.lang.Object
org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy
org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy
- All Implemented Interfaces:
IMarkupSourcingStrategy
This is a no-op sourcing strategy implementing the default behavior for most components.
- Author:
- Juergen Donnerstag
-
Method Summary
Modifier and TypeMethodDescriptionget()
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 Details
-
get
- Returns:
- A singleton of the strategy
-
onComponentTag
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:
-
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:
-
getMarkup
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:
-