|
||||||||||
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
This class represents a day in the Schedule component
Constructor Summary | |
Day(java.util.Date date)
Creates a new Day object. |
Method Summary | |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
boolean |
equalsDate(java.util.Date date)
Check if the specified date is on this day |
java.util.Date |
getDate()
|
java.util.Date |
getDayEnd()
|
java.util.Date |
getDayStart()
|
java.lang.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 |
setSpecialDayName(java.lang.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(java.util.Date date)
date
- the date
java.lang.NullPointerException
- when the date is nullMethod Detail |
public java.util.Date getDate()
public java.util.Date getDayEnd()
public java.util.Date getDayStart()
public void setSpecialDayName(java.lang.String specialDayName)
If this day is a holiday of some kind, this sets the name
specialDayName
- The specialDayName to set.public java.lang.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 int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)
public boolean equalsDate(java.util.Date date)
Check if the specified date is on this day
date
- the date to check
public int hashCode()
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |