Class CalendarModel

java.lang.Object
org.apache.wicket.model.LoadableDetachableModel<List<? extends CalendarEvent>>
com.googlecode.wicket.jquery.ui.calendar.CalendarModel
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<List<? extends CalendarEvent>>, org.apache.wicket.util.io.IClusterable

public abstract class CalendarModel extends org.apache.wicket.model.LoadableDetachableModel<List<? extends CalendarEvent>>
Base class for implementing the list model of CalendarEvent to be retrieved.
Calendar widget takes those model in constructor; the inheriting class should be able to LoadableDetachableModel.load() events depending on getStart() and getEnd() dates.
Author:
Sebastien Briquet - sebfz1
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the end date, used to LoadableDetachableModel.load() CalendarEvents
    Gets the start date, used to LoadableDetachableModel.load() CalendarEvents
    void
    Gets the end date.
    void
    Sets the start date.

    Methods inherited from class org.apache.wicket.model.LoadableDetachableModel

    detach, getObject, isAttached, load, of, onAttach, onDetach, setObject, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.wicket.model.IModel

    combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
  • Constructor Details

    • CalendarModel

      public CalendarModel()
      Constructor
  • Method Details

    • getStart

      public LocalDate getStart()
      Gets the start date, used to LoadableDetachableModel.load() CalendarEvents
      Returns:
      the start date
    • setStart

      public void setStart(LocalDate date)
      Sets the start date.
      Parameters:
      date - the start date
    • getEnd

      public LocalDate getEnd()
      Gets the end date, used to LoadableDetachableModel.load() CalendarEvents
      Returns:
      the start date
    • setEnd

      public void setEnd(LocalDate date)
      Gets the end date.
      Parameters:
      date - the start date