org.zkoss.calendar.api
Interface CalendarModel

All Known Implementing Classes:
AbstractCalendarModel, SimpleCalendarModel

public interface CalendarModel

This interface defines the methods used for Calendars to store the event datum.

Author:
jumperchen

Method Summary
 void addCalendarDataListener(CalendarDataListener l)
          Adds a listener to the calendar model that's notified each time a change to the data model occurs.
 java.util.List<CalendarEvent> get(java.util.Date beginDate, java.util.Date endDate, RenderContext rc)
          Returns the list that must be a list of CalendarEvent type.
 void removeCalendarDataListener(CalendarDataListener l)
          Removes a listener from the calendar model that's notified each time a change to the data model occurs.
 

Method Detail

get

java.util.List<CalendarEvent> get(java.util.Date beginDate,
                                  java.util.Date endDate,
                                  RenderContext rc)
Returns the list that must be a list of CalendarEvent type.

Parameters:
beginDate - the begin date
endDate - the end date
rc - a RenderContext encapsulates the information needed for Calendars.

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.



Copyright © 2005-2008 Potix Corporation. All Rights Reserved.