|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.types.data.FwCalendar
| Field Summary | |
java.util.Calendar |
calendar
|
static java.lang.String[] |
DAY_NAMES
An array containing the names of the days in a week |
static int[] |
DAYS_IN_MONTH
An array containing the number of the days in the month |
static java.lang.String[] |
SHORT_DAY_NAMES
An array containing the short names of the days in a week |
| Constructor Summary | |
FwCalendar()
|
|
| Method Summary | |
void |
addDay(int i)
Adds to the current day a number of days |
void |
addMonth(int i)
Adds to the current month a number of months |
java.util.Date |
getDate()
Gets the date |
int |
getDay()
Return the day of the month as number, starting from 1 |
int |
getDayOfWeek()
Gets the day of a week |
int |
getDayOfWeek(int i)
|
java.lang.String |
getDayOfWeekName()
Gets the name of a day |
int |
getDaysInMonth()
Returns the days in the month |
static int |
getDaysInMonth(int mm,
int yy)
Gets the days in a month |
int |
getMonth()
Gets the number of the month |
int |
getYear()
Gets the year |
static boolean |
isLeapYear(int yy)
Check if the year , given as parameter is a leap year |
boolean |
isValid(int yy,
int mm)
|
boolean |
isValid(int yy,
int mm,
int dd)
|
void |
setDate(java.util.Date d)
Sets the date |
void |
setDate(int yy,
int mm,
int dd)
Sets the date |
void |
setDay(int i)
Sets a day in the month |
void |
setMonth(int mm)
Sets the number of the month |
void |
setYear(int yy)
Sets the year |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int[] DAYS_IN_MONTH
public static java.lang.String[] SHORT_DAY_NAMES
public static java.lang.String[] DAY_NAMES
public java.util.Calendar calendar
| Constructor Detail |
public FwCalendar()
| Method Detail |
public static int getDaysInMonth(int mm,
int yy)
mm - - the monthyy - - the year
public static boolean isLeapYear(int yy)
yy - - the year
public int getDay()
public void setDay(int i)
i - - the number of the new daypublic int getMonth()
public void setMonth(int mm)
mm - - the new monthpublic int getYear()
public void setYear(int yy)
yy - - the new yearpublic java.util.Date getDate()
public void setDate(java.util.Date d)
d - - the new date
public void setDate(int yy,
int mm,
int dd)
yy - - the yearmm - - the monthdd - - the daypublic int getDaysInMonth()
public int getDayOfWeek(int i)
public int getDayOfWeek()
public java.lang.String getDayOfWeekName()
public void addDay(int i)
i - - the number of days that must be addedpublic void addMonth(int i)
i - - the number of months that must be added
public boolean isValid(int yy,
int mm,
int dd)
public boolean isValid(int yy,
int mm)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||