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 ofCalendarEventto be retrieved.
Calendarwidget takes those model in constructor; the inheriting class should be able toLoadableDetachableModel.load()events depending ongetStart()andgetEnd()dates.- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CalendarModel()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDategetEnd()LocalDategetStart()voidsetEnd(LocalDate date)Gets the end date.voidsetStart(LocalDate date)Sets the start date.-
Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
detach, getObject, isAttached, load, of, onAttach, onDetach, setObject, toString
-
-
-
-
Method Detail
-
getStart
public LocalDate getStart()
- Returns:
- the start date
-
setStart
public void setStart(LocalDate date)
Sets the start date.- Parameters:
date- the start date
-
getEnd
public LocalDate getEnd()
- Returns:
- the start date
-
setEnd
public void setEnd(LocalDate date)
Gets the end date.- Parameters:
date- the start date
-
-