|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScheduleModel<T extends ScheduleItem>
Model for the schedule component. Each schedule component must have a model which returns data when the schedule needs it. Important None of the calls here must buffer it's contents!! All controls that use this model will only ask for a given dataset once and cache the response locally. Only when a control's display format or date range changes will it re-query the contents of this model!!
Method Summary | |
---|---|
void |
addScheduleListener(ScheduleModelChangedListener<T> chl)
|
java.util.List<ScheduleHoliday> |
getScheduleHolidays(java.util.Date start,
java.util.Date end)
Returns a list of holidays in the given period. |
java.util.List<T> |
getScheduleItems(java.util.Date start,
java.util.Date end)
Get schedule items in the specified period. |
java.util.List<ScheduleWorkHour> |
getScheduleWorkHours(java.util.Date start,
java.util.Date end)
Returns the work hours for the user on each day in the given period. |
void |
removeScheduleListener(ScheduleModelChangedListener<T> chl)
|
Method Detail |
---|
java.util.List<T> getScheduleItems(java.util.Date start, java.util.Date end) throws java.lang.Exception
start
- end
-
java.lang.Exception
java.util.List<ScheduleHoliday> getScheduleHolidays(java.util.Date start, java.util.Date end) throws java.lang.Exception
start
- end
-
java.lang.Exception
java.util.List<ScheduleWorkHour> getScheduleWorkHours(java.util.Date start, java.util.Date end) throws java.lang.Exception
start
- end
-
java.lang.Exception
void addScheduleListener(ScheduleModelChangedListener<T> chl)
void removeScheduleListener(ScheduleModelChangedListener<T> chl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |