Class CalendarModelBehavior

java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior
com.googlecode.wicket.jquery.ui.calendar.CalendarModelBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class CalendarModelBehavior extends com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior
Provides the behavior that loads CalendarEvents according to CalendarModel start & end dates
Author:
Sebastien Briquet - sebfz1
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getResponse(org.apache.wicket.request.IRequestParameters parameters)
     
    protected void
    Sets the end date to the model
    This can be overridden to perform additional operation on date before the assignment.
    protected void
    Sets the start date to the model
    This can be overridden to perform additional operation on date before the assignment.

    Methods inherited from class com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior

    onRequest, rendersPage

    Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior

    afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind

    Methods inherited from class org.apache.wicket.behavior.Behavior

    beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setStartDate

      protected void setStartDate(CalendarModel model, LocalDate date)
      Sets the start date to the model
      This can be overridden to perform additional operation on date before the assignment.
      Parameters:
      model - the CalendarModel
      date - the LocalDate
    • setEndDate

      protected void setEndDate(CalendarModel model, LocalDate date)
      Sets the end date to the model
      This can be overridden to perform additional operation on date before the assignment.
      Parameters:
      model - the CalendarModel
      date - the LocalDate
    • getResponse

      protected String getResponse(org.apache.wicket.request.IRequestParameters parameters)
      Specified by:
      getResponse in class com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior