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

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.PanelMarkupSourcingStrategy
All Implemented Interfaces:
IMarkupSourcingStrategy

public class PanelMarkupSourcingStrategy
extends AssociatedMarkupSourcingStrategy

Author:
Juergen Donnerstag

Field Summary
static String PANEL
           
 
Constructor Summary
PanelMarkupSourcingStrategy()
          Constructor.
 
Method Summary
 IMarkupFragment getMarkup(MarkupContainer parent, Component child)
          Will replace the respective component's method. However by returning null, the component's method will be called.
 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, onComponentTag, renderHead, renderHeadFromAssociatedMarkupFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PANEL

public static final String PANEL
See Also:
Constant Field Values
Constructor Detail

PanelMarkupSourcingStrategy

public PanelMarkupSourcingStrategy()
Constructor.

Method Detail

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 parent,
                                 Component child)
Will replace the respective component's method. However by returning null, the component's method will be called.

Specified by:
getMarkup in interface IMarkupSourcingStrategy
Specified by:
getMarkup in class AbstractMarkupSourcingStrategy
Parameters:
parent - 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.