| 
 | ||||||||||
| 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
public class Day
This class represents a day in the Schedule component
| Constructor Summary | |
|---|---|
| Day(Date date)Creates a new Day object. | |
| Day(Date date,
    TimeZone timeZone)Creates a new Day object. | |
| Method Summary | |
|---|---|
|  void | addInterval(String label,
            Date startTime,
            Date endTime) | 
|  int | compareTo(Object o) | 
|  boolean | equals(Object o) | 
|  boolean | equalsDate(Date date)Check if the specified date is on this day | 
| protected  Calendar | getCalendarInstance(Date date) | 
|  Date | getDate() | 
|  Date | getDayEnd() | 
|  Date | getDayStart() | 
|  TreeSet | getIntervals() | 
|  String | getSpecialDayName()If this day is a holiday of some kind, this gets the name | 
|  int | hashCode() | 
|  boolean | isWorkingDay()Is this day a working day? | 
|  void | setIntervals(Collection intervals)Set user defined intervals during the day. | 
|  void | setSpecialDayName(String specialDayName)If this day is a holiday of some kind, this sets the name | 
|  void | setWorkingDay(boolean workingDay)Is this day a working day? | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Day(Date date)
date - the date
NullPointerException - when the date is null
public Day(Date date,
           TimeZone timeZone)
date - the datetimeZone - The timezone
NullPointerException - when the date is null| Method Detail | 
|---|
protected Calendar getCalendarInstance(Date date)
public Date getDate()
public Date getDayEnd()
public Date getDayStart()
public void setSpecialDayName(String specialDayName)
If this day is a holiday of some kind, this sets the name
specialDayName - The specialDayName to set.public String getSpecialDayName()
If this day is a holiday of some kind, this gets the name
public void setWorkingDay(boolean workingDay)
Is this day a working day?
workingDay - The workingDay to set.public boolean isWorkingDay()
Is this day a working day?
public TreeSet getIntervals()
public void setIntervals(Collection intervals)
intervals - A Collection
public void addInterval(String label,
                        Date startTime,
                        Date endTime)
public int compareTo(Object o)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public boolean equalsDate(Date date)
Check if the specified date is on this day
date - the date to check
public int hashCode()
hashCode in class ObjectObject.hashCode()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||