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

Author:
Juergen Donnerstag

Constructor Summary
BorderMarkupSourcingStrategy()
          Constructor.
 
Method Summary
 IMarkupFragment getMarkup(MarkupContainer container, Component child)
          Return null and thus use component.getMarkup(child) to provide the Markup
 void onComponentTag(Component component, ComponentTag tag)
          Make sure we open up open-close tags to open-body-close
 void onComponentTagBody(Component component, MarkupStream markupStream, ComponentTag openTag)
          Will replace the respective component's method.

It's perfectly valid to call component.onComponentTagBody(markupStream, openTag) from insight this method.

 
Methods inherited from class org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy
findMarkupInAssociatedFileHeader, renderHead, renderHeadFromAssociatedMarkupFile
 
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

onComponentTag

public void onComponentTag(Component component,
                           ComponentTag tag)
Make sure we open up open-close tags to open-body-close

Specified by:
onComponentTag in interface IMarkupSourcingStrategy
Overrides:
onComponentTag in class AssociatedMarkupSourcingStrategy
Parameters:
component - The component calling the strategy
See Also:
Component.onComponentTag(ComponentTag)

onComponentTagBody

public void onComponentTagBody(Component component,
                               MarkupStream markupStream,
                               ComponentTag openTag)
Will replace the respective component's method.

It's perfectly valid to call component.onComponentTagBody(markupStream, openTag) from insight this method.

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 component.getMarkup(child) to provide the Markup

Specified by:
getMarkup in interface IMarkupSourcingStrategy
Specified by:
getMarkup in class AbstractMarkupSourcingStrategy
Parameters:
container - The parent containing the child.
child - The componen to find the markup for.
Returns:
markup fragment
See Also:
MarkupContainer.getMarkup(Component)


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