|
||||||||||
| 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
org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy
public class FragmentMarkupSourcingStrategy
A markup sourcing strategy suitable for Fragment components.
| Constructor Summary | |
|---|---|
FragmentMarkupSourcingStrategy(String markupId,
MarkupContainer markupProvider)
Constructor. |
|
| Method Summary | |
|---|---|
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'. |
| Methods inherited from class org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy |
|---|
onComponentTag, renderHead, searchMarkupInTransparentResolvers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FragmentMarkupSourcingStrategy(String markupId,
MarkupContainer markupProvider)
markupId - The associated id of the associated markup fragmentmarkupProvider - The component whose markup contains the fragment's markup| Method Detail |
|---|
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||