Package org.zkoss.calendar.impl
Class AbstractCalendarModel
- java.lang.Object
-
- org.zkoss.calendar.impl.AbstractCalendarModel
-
- All Implemented Interfaces:
Serializable,CalendarModel
- Direct Known Subclasses:
SimpleCalendarModel
public abstract class AbstractCalendarModel extends Object implements CalendarModel, Serializable
A skeletal implementation forCalendarModel- Author:
- jumperchen,jimmy
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractCalendarModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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.protected voidfireEvent(int type, Date begin, Date end)Deprecated.As of release 2.0-RC, replaced withfireEvent(int type, CalendarItem e)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).protected voidfireEvent(int type, Date begin, Date end, TimeZone timezone)Deprecated.As of release 2.0-RC, replaced withfireEvent(int type, CalendarItem e, TimeZone timezone)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).protected voidfireEvent(int type, CalendarItem e)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).protected voidfireEvent(int type, CalendarItem e, TimeZone timezone)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).voidremoveCalendarDataListener(CalendarDataListener l)Removes a listener from the calendar model that's notified each time a change to the data model occurs.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zkoss.calendar.api.CalendarModel
get, get
-
-
-
-
Method Detail
-
fireEvent
protected void fireEvent(int type, Date begin, Date end)Deprecated.As of release 2.0-RC, replaced withfireEvent(int type, CalendarItem e)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).- See Also:
fireEvent(int, Date, Date, TimeZone)
-
fireEvent
protected void fireEvent(int type, CalendarItem e)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).- See Also:
fireEvent(int, Date, Date, TimeZone)
-
fireEvent
protected void fireEvent(int type, Date begin, Date end, TimeZone timezone)Deprecated.As of release 2.0-RC, replaced withfireEvent(int type, CalendarItem e, TimeZone timezone)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).Note: you can invoke this method only in an event listener.
-
fireEvent
protected void fireEvent(int type, CalendarItem e, TimeZone timezone)Fires aCalendarDataEventfor all registered listener (thruaddCalendarDataListener(org.zkoss.calendar.event.CalendarDataListener).Note: you can invoke this method only in an event listener.
-
addCalendarDataListener
public void addCalendarDataListener(CalendarDataListener l)
Description copied from interface:CalendarModelAdds a listener to the calendar model that's notified each time a change to the data model occurs.- Specified by:
addCalendarDataListenerin interfaceCalendarModel
-
removeCalendarDataListener
public void removeCalendarDataListener(CalendarDataListener l)
Description copied from interface:CalendarModelRemoves a listener from the calendar model that's notified each time a change to the data model occurs.- Specified by:
removeCalendarDataListenerin interfaceCalendarModel
-
-