Package org.zkoss.calendar.api
Interface CalendarModel
-
- All Known Implementing Classes:
AbstractCalendarModel,SimpleCalendarModel
public interface CalendarModelThis interface defines the methods used forCalendarsto store the event datum.- Author:
- jumperchen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCalendarDataListener(CalendarDataListener l)Adds a listener to the calendar model that's notified each time a change to the data model occurs.List<CalendarItem>get(LocalDateTime beginDate, LocalDateTime endDate, RenderContext context)List<CalendarItem>get(Date beginDate, Date endDate, RenderContext rc)Returns the list that must be a list ofCalendarItemtype.voidremoveCalendarDataListener(CalendarDataListener l)Removes a listener from the calendar model that's notified each time a change to the data model occurs.
-
-
-
Method Detail
-
get
List<CalendarItem> get(Date beginDate, Date endDate, RenderContext rc)
Returns the list that must be a list ofCalendarItemtype.- Parameters:
beginDate- the begin dateendDate- the end daterc- a RenderContext encapsulates the information needed for Calendars.
-
get
List<CalendarItem> get(LocalDateTime beginDate, LocalDateTime endDate, RenderContext context)
-
addCalendarDataListener
void addCalendarDataListener(CalendarDataListener l)
Adds a listener to the calendar model that's notified each time a change to the data model occurs.
-
removeCalendarDataListener
void removeCalendarDataListener(CalendarDataListener l)
Removes a listener from the calendar model that's notified each time a change to the data model occurs.
-
-