org.wamblee.wicket.page
Class ExpireBehavior

java.lang.Object
  extended by org.wamblee.wicket.page.AbstractPageBehavior
      extended by org.wamblee.wicket.page.ExpireBehavior
All Implemented Interfaces:
java.io.Serializable, PageBehavior

public abstract class ExpireBehavior
extends AbstractPageBehavior

Bahevior that will expire a page when the page is disabled. Implementations should implemnet

Author:
Erik Brakkee
See Also:
Serialized Form

Constructor Summary
ExpireBehavior()
          Constructs the behavior.
 
Method Summary
protected abstract  boolean isExpired(org.apache.wicket.markup.html.WebPage aPage)
          Must be implemented to determine if a page is expired.
 void onDetach(org.apache.wicket.markup.html.WebPage aPage)
          To be called in the {@link Page#onDetach
 
Methods inherited from class org.wamblee.wicket.page.AbstractPageBehavior
onAfterRender, onBeforeRender, setHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpireBehavior

public ExpireBehavior()
Constructs the behavior.

Method Detail

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
Overrides:
onDetach in class AbstractPageBehavior

isExpired

protected abstract boolean isExpired(org.apache.wicket.markup.html.WebPage aPage)
Must be implemented to determine if a page is expired.

Parameters:
aPage - Page to check. If a behavior instance is only used on one page then this argument is always that page so it can bne ignored in that case.
Returns:


Copyright © 2022. All Rights Reserved.