|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.comp.calendar.CalendarItem
CalendarItem
is a bean for the day attributes
Field Summary | |
static int |
CURRENT_MONTH
Current month flag |
protected int |
fDay
|
protected int |
fMonth
|
protected int |
fMonthType
|
protected java.lang.String |
fStringDay
|
protected boolean |
fToday
|
protected boolean |
fWeekend
|
protected int |
fYear
|
static int |
NEXT_MONTH
Next month flag |
static int |
PREVIOUS_MONTH
Previous month flag |
Constructor Summary | |
CalendarItem()
|
Method Summary | |
int |
getDay()
Gets the day of month |
int |
getMonth()
Gets the month number (0 - 11) |
int |
getMonthType()
Gets the month type (current, previous or next) |
java.lang.String |
getStringDay()
Gets localized string presentation of the day of month |
int |
getYear()
Gets the year |
boolean |
isCurrentMonth()
Returns whether this day belongs to current month |
boolean |
isToday()
Returns whether this day is today |
boolean |
isWeekend()
Returns whether this day is weekend (only Sunday) |
void |
setDay(int aDay)
Sets the day of month |
void |
setMonth(int aMonth)
Sets the month number (0 - 11) |
void |
setMonthType(int aMonthType)
Sets the month type |
void |
setStringDay(java.lang.String aDay)
Sets localized string presentation of the day of month |
void |
setToday(boolean anIsToday)
Sets whether this day is today |
void |
setWeekend(boolean aWeekend)
Sets whether this day is weekend |
void |
setYear(int aYear)
Sets the year |
java.lang.String |
toString()
Returns localized string presentation of the day |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CURRENT_MONTH
public static final int PREVIOUS_MONTH
public static final int NEXT_MONTH
protected int fDay
protected java.lang.String fStringDay
protected int fMonth
protected int fYear
protected int fMonthType
protected boolean fToday
protected boolean fWeekend
Constructor Detail |
public CalendarItem()
Method Detail |
public int getDay()
public void setDay(int aDay)
aDay
- the day of monthpublic java.lang.String getStringDay()
public void setStringDay(java.lang.String aDay)
aDay
- localized string presentation of the day of monthpublic int getMonth()
public void setMonth(int aMonth)
aMonth
- the month numberpublic int getYear()
public void setYear(int aYear)
aYear
- the yearpublic int getMonthType()
public void setMonthType(int aMonthType)
aMonthType
- the month typepublic boolean isCurrentMonth()
true
if yespublic boolean isToday()
true
if yespublic void setToday(boolean anIsToday)
anIsToday
- true
if yespublic boolean isWeekend()
true
if yespublic void setWeekend(boolean aWeekend)
aWeekend
- true
if yespublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |