org.wamblee.wicket.page
Class AbstractPageBehavior

java.lang.Object
  extended by org.wamblee.wicket.page.AbstractPageBehavior
All Implemented Interfaces:
java.io.Serializable, PageBehavior
Direct Known Subclasses:
DisableCachingBehavior, ExpireBehavior, ExpirePageImmediatelyBehavior, FlushEntityManagerBehavior

public abstract class AbstractPageBehavior
extends java.lang.Object
implements PageBehavior

Abstract page behavior to simplify implementations of behaviors thar don't need to implement all callbacks.

Author:
Erik Brakkee
See Also:
Serialized Form

Constructor Summary
protected AbstractPageBehavior()
          Constructor.
 
Method Summary
 void onAfterRender(org.apache.wicket.markup.html.WebPage aPage)
          To be called as part of the Page's onAfterRender
 void onBeforeRender(org.apache.wicket.markup.html.WebPage aPage)
          To be called as part of the Page's onBeforeRender
 void onDetach(org.apache.wicket.markup.html.WebPage aPage)
          To be called in the {@link Page#onDetach
 void setHeaders(org.apache.wicket.markup.html.WebPage aPage, org.apache.wicket.protocol.http.WebResponse aResponse)
          To be called as part of the Page's setHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPageBehavior

protected AbstractPageBehavior()
Constructor.

Method Detail

onBeforeRender

public void onBeforeRender(org.apache.wicket.markup.html.WebPage aPage)
Description copied from interface: PageBehavior
To be called as part of the Page's onBeforeRender

Specified by:
onBeforeRender in interface PageBehavior
Parameters:
aPage - Page this is called for.

setHeaders

public void setHeaders(org.apache.wicket.markup.html.WebPage aPage,
                       org.apache.wicket.protocol.http.WebResponse aResponse)
Description copied from interface: PageBehavior
To be called as part of the Page's setHeaders

Specified by:
setHeaders in interface PageBehavior
Parameters:
aPage - Page this is called for.
aResponse - Response to set headers for.

onAfterRender

public void onAfterRender(org.apache.wicket.markup.html.WebPage aPage)
Description copied from interface: PageBehavior
To be called as part of the Page's onAfterRender

Specified by:
onAfterRender in interface PageBehavior
Parameters:
aPage - Page this is called for.

onDetach

public void onDetach(org.apache.wicket.markup.html.WebPage aPage)
Description copied from interface: PageBehavior
To be called in the {@link Page#onDetach

Specified by:
onDetach in interface PageBehavior


Copyright © 2022. All Rights Reserved.