com.jp.comp.calendar
Class CalendarItem

java.lang.Object
  extended bycom.jp.comp.calendar.CalendarItem

public class CalendarItem
extends java.lang.Object

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

CURRENT_MONTH

public static final int CURRENT_MONTH
Current month flag

See Also:
Constant Field Values

PREVIOUS_MONTH

public static final int PREVIOUS_MONTH
Previous month flag

See Also:
Constant Field Values

NEXT_MONTH

public static final int NEXT_MONTH
Next month flag

See Also:
Constant Field Values

fDay

protected int fDay

fStringDay

protected java.lang.String fStringDay

fMonth

protected int fMonth

fYear

protected int fYear

fMonthType

protected int fMonthType

fToday

protected boolean fToday

fWeekend

protected boolean fWeekend
Constructor Detail

CalendarItem

public CalendarItem()
Method Detail

getDay

public int getDay()
Gets the day of month

Returns:
the day of month

setDay

public void setDay(int aDay)
Sets the day of month

Parameters:
aDay - the day of month

getStringDay

public java.lang.String getStringDay()
Gets localized string presentation of the day of month

Returns:
localized string presentation of the day of month

setStringDay

public void setStringDay(java.lang.String aDay)
Sets localized string presentation of the day of month

Parameters:
aDay - localized string presentation of the day of month

getMonth

public int getMonth()
Gets the month number (0 - 11)

Returns:
the month number

setMonth

public void setMonth(int aMonth)
Sets the month number (0 - 11)

Parameters:
aMonth - the month number

getYear

public int getYear()
Gets the year

Returns:
the year

setYear

public void setYear(int aYear)
Sets the year

Parameters:
aYear - the year

getMonthType

public int getMonthType()
Gets the month type (current, previous or next)

Returns:
the month type

setMonthType

public void setMonthType(int aMonthType)
Sets the month type

Parameters:
aMonthType - the month type

isCurrentMonth

public boolean isCurrentMonth()
Returns whether this day belongs to current month

Returns:
true if yes

isToday

public boolean isToday()
Returns whether this day is today

Returns:
true if yes

setToday

public void setToday(boolean anIsToday)
Sets whether this day is today

Parameters:
anIsToday - true if yes

isWeekend

public boolean isWeekend()
Returns whether this day is weekend (only Sunday)

Returns:
true if yes

setWeekend

public void setWeekend(boolean aWeekend)
Sets whether this day is weekend

Parameters:
aWeekend - true if yes

toString

public java.lang.String toString()
Returns localized string presentation of the day

Returns:
localized string presentation of the day