public class FragmentMarkupSourcingStrategy extends AbstractMarkupSourcingStrategy
| Constructor and Description |
|---|
FragmentMarkupSourcingStrategy(String markupId,
MarkupContainer markupProvider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IMarkupFragment |
chooseMarkup(Component component)
Get the markup stream which shall be used to search for the fragment
|
IMarkupFragment |
getMarkup(MarkupContainer container,
Component child)
Search for the child's markup in the fragment markup.
|
protected MarkupContainer |
getMarkupProvider(Component component)
Returns markup provider associated with this fragment
|
void |
onComponentTagBody(Component component,
MarkupStream markupStream,
ComponentTag openTag)
Skip the body markup associated with the 'component'.
|
onComponentTag, renderHead, searchMarkupInTransparentResolverspublic FragmentMarkupSourcingStrategy(String markupId, MarkupContainer markupProvider)
markupId - The associated id of the associated markup fragmentmarkupProvider - The component whose markup contains the fragment's markuppublic void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
Than search for the markup of the fragment, effectively replacing the original markup.
onComponentTagBody in interface IMarkupSourcingStrategyonComponentTagBody in class AbstractMarkupSourcingStrategycomponent - The component calling the strategyComponent.onComponentTagBody(MarkupStream, ComponentTag)protected final MarkupContainer getMarkupProvider(Component component)
component - public IMarkupFragment chooseMarkup(Component component)
component - public IMarkupFragment getMarkup(MarkupContainer container, Component child)
getMarkup in interface IMarkupSourcingStrategygetMarkup in class AbstractMarkupSourcingStrategycontainer - 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)Copyright © 2006–2014 Apache Software Foundation. All rights reserved.