|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagine.component.calendar.data.CalendarDate
Stores the (year, month, day of month) data from a Date. It does not store the hours, minutes and seconds.
| Constructor Summary | |
CalendarDate()
Default constructor for the CalendarDate object. |
|
CalendarDate(java.util.Calendar calendar)
Constructor for the CalendarDate object. |
|
CalendarDate(java.util.Date date)
Constructor for the CalendarDate object. |
|
CalendarDate(int year,
int month,
int dayOfMonth)
Constructor for the CalendarDate object. |
|
| Method Summary | |
CalendarDate |
add(int numberOfDays)
Create a new CalendarDate object which is with the specified number of days difference from the current calendar. |
int |
compareTo(CalendarDate calendarDate)
Compare the current CalendarDate with the specified one. |
CalendarDate |
createCalendarDate(int calendarField,
int fieldValue)
Create a new calendarDate which has the fieldValue for the specified calendarField. |
java.util.Date |
createDate()
Create a Date object from the current calendarDate object. |
boolean |
equals(java.lang.Object obj)
Overrides the equals function in Object class. |
int |
getDayOfMonth()
Get the day of month. |
int |
getMonth()
Get the month. |
int |
getWeekOfMonth()
Returns the week of month. |
int |
getWeekOfYear()
Returns the week of year. |
int |
getYear()
Get the year. |
int |
hashCode()
Overrides the hashCode function from Object class. |
java.lang.String |
toString()
Returns "" for null dates and "yyyy.mm.dd" for non null dates. |
boolean |
wrapsNullDate()
Returns true if this calendar wraps a null date. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CalendarDate()
public CalendarDate(java.util.Date date)
date - The date from which the CalendarDate object is constructed.public CalendarDate(java.util.Calendar calendar)
calendar - The calendar from which the CalendarDate object is constructed.
public CalendarDate(int year,
int month,
int dayOfMonth)
year - The year of the CalendarDate object.month - The month of the CalendarDate object.dayOfMonth - The dayOfMonth of the CalendarDate object.| Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
public int getDayOfMonth()
public int getMonth()
public int getYear()
public int getWeekOfMonth()
public int getWeekOfYear()
public java.util.Date createDate()
public int compareTo(CalendarDate calendarDate)
calendarDate - The calendarDate tio be compared with the current CalendarDate.
public boolean wrapsNullDate()
public CalendarDate add(int numberOfDays)
numberOfDays -
public CalendarDate createCalendarDate(int calendarField,
int fieldValue)
calendarField - The field for which a new value will be assigned.fieldValue - The field value.
|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||