Class 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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String getResponse​(org.apache.wicket.request.IRequestParameters parameters)  
      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.
      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.
      • 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
    • Constructor Detail

    • Method Detail

      • 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