|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.schedule.model.Day
org.apache.myfaces.custom.schedule.model.ScheduleDay
public class ScheduleDay
This class represents one day in the schedule component
Constructor Summary | |
---|---|
ScheduleDay(Date date)
Creates a new ScheduleDay object. |
|
ScheduleDay(Date date,
TimeZone tz)
Creates a new ScheduleDay object. |
Method Summary | |
---|---|
boolean |
addEntry(ScheduleEntry entry)
Add an entry to this day |
void |
clear()
Remove all entries from this day |
int |
getFirstEventHour()
Get the inclusive hour in which the first event on this day starts. |
Interval |
getInterval(Date clickedDate)
|
List |
getIntervals(int startHour,
int endHour)
Get an chronologically ordered list of intervals during the day. |
int |
getLastEventHour()
Get the non-inclusive hour by which all events on this day have completed. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(ScheduleEntry entry)
Remove an entry from this day |
int |
size()
|
Methods inherited from class org.apache.myfaces.custom.schedule.model.Day |
---|
addInterval, compareTo, equals, equalsDate, getCalendarInstance, getDate, getDayEnd, getDayStart, getIntervals, getSpecialDayName, hashCode, isWorkingDay, setIntervals, setSpecialDayName, setWorkingDay |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public ScheduleDay(Date date)
date
- the datepublic ScheduleDay(Date date, TimeZone tz)
date
- the dateMethod Detail |
---|
public boolean isEmpty()
public boolean addEntry(ScheduleEntry entry)
Add an entry to this day
entry
- the entry to add
public void clear()
Remove all entries from this day
public Iterator iterator()
public boolean remove(ScheduleEntry entry)
Remove an entry from this day
entry
- the entry to remove
public int size()
public int getLastEventHour()
public int getFirstEventHour()
public Interval getInterval(Date clickedDate)
public List getIntervals(int startHour, int endHour)
startHour
- The first hourendHour
- The last hour
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |