Class SchedulerModelBehavior

  • 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 SchedulerModelBehavior
    extends com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior
    Provides the behavior that loads SchedulerEvents according to SchedulerModel 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 setModelStartDate​(SchedulerModel model, ZonedDateTime datetime)
      Sets the start date to the model
      This can be overridden to perform additional operation on date before the assignment.
      protected void setModelUntilDate​(SchedulerModel model, ZonedDateTime datetime)
      Sets the until/end 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
    • Method Detail

      • setModelStartDate

        protected void setModelStartDate​(SchedulerModel model,
                                         ZonedDateTime datetime)
        Sets the start date to the model
        This can be overridden to perform additional operation on date before the assignment.
        Parameters:
        model - the SchedulerModel
        datetime - the ZonedDateTime
      • setModelUntilDate

        protected void setModelUntilDate​(SchedulerModel model,
                                         ZonedDateTime datetime)
        Sets the until/end date to the model
        This can be overridden to perform additional operation on date before the assignment.
        Parameters:
        model - the SchedulerModel
        datetime - the ZonedDateTime
      • getResponse

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