|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.custom.schedule.model.AbstractScheduleModel
org.apache.myfaces.custom.schedule.model.SimpleScheduleModel
A simple implementation of the ScheduleModel, not backed by any kind of datasource: entries have to be added manually.
| Field Summary |
| Fields inherited from class org.apache.myfaces.custom.schedule.model.AbstractScheduleModel |
days |
| Fields inherited from interface org.apache.myfaces.custom.schedule.model.ScheduleModel |
DAY, MONTH, WEEK, WORKWEEK |
| Constructor Summary | |
SimpleScheduleModel()
Creates a new SimpleScheduleModel object. |
|
| Method Summary | |
void |
addEntry(ScheduleEntry entry)
Add an entry to the model |
protected void |
loadDayAttributes(Day day)
Load any attributes for this day: is it a working day or a holiday, and what is the name of the day (e.g. |
protected java.util.Collection |
loadEntries(java.util.Date startDate,
java.util.Date endDate)
Load the schedule entries that fall between the startDate and the endDate. |
void |
removeEntry(ScheduleEntry entry)
Remove an entry from the model |
void |
setHoliday(java.util.Date date,
java.lang.String holidayName)
Set the name of a holiday |
| Methods inherited from class org.apache.myfaces.custom.schedule.model.AbstractScheduleModel |
add, clear, containsDate, get, getMode, getSelectedDate, getSelectedEntry, isEmpty, iterator, refresh, setDay, setMode, setMonth, setSelectedDate, setSelectedEntry, setWeek, setWorkWeek, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleScheduleModel()
| Method Detail |
public void setHoliday(java.util.Date date,
java.lang.String holidayName)
Set the name of a holiday
date - the dateholidayName - the name of the holiday
public void addEntry(ScheduleEntry entry)
Add an entry to the model
entry - the entry to addpublic void removeEntry(ScheduleEntry entry)
Remove an entry from the model
entry - the entry to remove
protected java.util.Collection loadEntries(java.util.Date startDate,
java.util.Date endDate)
AbstractScheduleModelLoad the schedule entries that fall between the startDate and the endDate.
loadEntries in class AbstractScheduleModelstartDate - 0 AM on the start dateendDate - 12 PM on the end dateAbstractScheduleModel.loadEntries(java.util.Date, java.util.Date)protected void loadDayAttributes(Day day)
AbstractScheduleModelLoad any attributes for this day: is it a working day or a holiday, and what is the name of the day (e.g. "Christmas").
loadDayAttributes in class AbstractScheduleModelday - the day that should be loadedAbstractScheduleModel.loadDayAttributes(org.apache.myfaces.custom.schedule.model.Day)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||