org.apache.wicket.markup.html.panel
Class DefaultMarkupSourcingStrategy

java.lang.Object
  extended by org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy
      extended by 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
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 default
 void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
          Invoke the component's onComponentTagBody().
 void renderHead(Component component, HtmlHeaderContainer container)
          Empty: nothing will be added to the header by default
 
Methods inherited from class org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy
searchMarkupInTransparentResolvers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static final 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 interface IMarkupSourcingStrategy
Overrides:
onComponentTag in class AbstractMarkupSourcingStrategy
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 interface IMarkupSourcingStrategy
Overrides:
onComponentTagBody in class AbstractMarkupSourcingStrategy
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 interface IMarkupSourcingStrategy
Specified by:
getMarkup in class AbstractMarkupSourcingStrategy
Parameters:
container - 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.
Returns:
the markup fragment for the child, or null.
See Also:
MarkupContainer.getMarkup(Component)

renderHead

public void renderHead(Component component,
                       HtmlHeaderContainer container)
Empty: nothing will be added to the header by default

Specified by:
renderHead in interface IMarkupSourcingStrategy
Overrides:
renderHead in class AbstractMarkupSourcingStrategy
Parameters:
component - The component calling the strategy
See Also:
Component.renderHead(HtmlHeaderContainer)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.