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

java.lang.Object
  extended by org.apache.wicket.markup.html.panel.AbstractMarkupSourcingStrategy
      extended by org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy
          extended by org.apache.wicket.markup.html.panel.BorderMarkupSourcingStrategy
All Implemented Interfaces:
IMarkupSourcingStrategy

public class BorderMarkupSourcingStrategy
extends AssociatedMarkupSourcingStrategy

The Border component's markup sourcing strategy

Author:
Juergen Donnerstag

Constructor Summary
BorderMarkupSourcingStrategy()
          Constructor.
 
Method Summary
 IMarkupFragment getMarkup(MarkupContainer container, Component child)
          Return null and thus use Border.getMarkup(child) to provide the Markup
 void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
          Skip the components body which is expected to be raw markup only (no wicket components).
 
Methods inherited from class org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy
findMarkupInAssociatedFileHeader, onComponentTag, renderAssociatedMarkup, renderHead, renderHeadFromAssociatedMarkupFile
 
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
 

Constructor Detail

BorderMarkupSourcingStrategy

public BorderMarkupSourcingStrategy()
Constructor.

Method Detail

onComponentTagBody

public void onComponentTagBody(Component component,
                               MarkupStream markupStream,
                               ComponentTag openTag)
Description copied from class: AbstractMarkupSourcingStrategy
Skip the components body which is expected to be raw markup only (no wicket components). It will be replaced by the associated markup.

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)
Return null and thus use Border.getMarkup(child) to provide the Markup

Specified by:
getMarkup in interface IMarkupSourcingStrategy
Overrides:
getMarkup in class AssociatedMarkupSourcingStrategy
Parameters:
container - The container expected to contain the markup for child
child - The child component to find the markup for
Returns:
The markup associated with the child
See Also:
MarkupContainer.getMarkup(Component)


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