Class 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:
    Serialized Form
    • Constructor Detail

      • CalendarModel

        public CalendarModel()
        Constructor
    • Method Detail

      • 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