com.antelmann.calendar
Class DefaultCalendarModel
java.lang.Object
com.antelmann.calendar.AbstractCalendarModel
com.antelmann.calendar.DefaultCalendarModel
- All Implemented Interfaces:
- CalendarModel, Serializable
public class DefaultCalendarModel
- extends AbstractCalendarModel
- implements Serializable
a standard implementation of a CalendarModel based on a simple TreeMap
- Author:
- Holger Antelmann
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
protected TreeMap<Date,Object> map
thisMonthOnly
protected Date thisMonthOnly
ch
protected final CalendarHelper ch
DefaultCalendarModel
public DefaultCalendarModel()
setThisMonthOnly
public void setThisMonthOnly(Date date)
- if set to a non-null value, the getValueFor(Date) method will only
return null in case a given date is not in the same month as this given parameter
getThisMonthOnly
public Date getThisMonthOnly()
getView
public SortedMap<Date,Object> getView()
put
public Object put(Date date,
Object value)
remove
public Object remove(Date date)
getValueFor
public Object getValueFor(Date date)
- Specified by:
getValueFor in interface CalendarModel
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads