CalendarBean Class
- public class CalendarBean
extends Object
implements Serializable
-
Hierarchy
-
Object
CalendarBean
-
All Implemented Interfaces
-
Serializable
public static final String |
-
DATE_FORMAT
- The formatting string used to represent a date.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT
public static final String
DATE_FORMAT
- The formatting string used to represent a date.
CalendarBean
public CalendarBean()
addMonthDisplayCalendar(int) Method
public void addMonthDisplayCalendar(int num)
Change the month which is displayed.
Parameters
-
num
- number by which to increment or decrement the month.
addYearDisplayCalendar(int) Method
public void addYearDisplayCalendar(int num)
Change the year which is displayed.
Parameters
-
num
- number by which to increment or decrement the year.
getCompleteWeeksInMonth() Method
public int getCompleteWeeksInMonth()
Retrieve the number of complete weeks for the month of the
current calendar displayed.
Returns
- integer days in month
getCurrentDate() Method
public int getCurrentDate()
Retrieve the day for the current date.
Returns
- integer the day of the month for the current date
getCurrentMonth() Method
public String
getCurrentMonth()
Retrieve the month for the current date.
Returns
- String month name
getCurrentMonthNumber() Method
public int getCurrentMonthNumber()
Retrieve the month number for the current date.
Returns
- integer month number returned from Calendar class
getCurrentYear() Method
public int getCurrentYear()
Retrieve the year for the current date.
Returns
- integer the year for the current date
getCurrentZoneId() Method
public String
getCurrentZoneId()
getDateSeconds(String, String, String, String, String, String) Method
public long getDateSeconds(String
theYear,
String
theMonth,
String
theDate,
String
theHour,
String
theMinute,
String
aTimezone)
getDayOfWeek(int) Method
public String
getDayOfWeek(int dayNum)
Retrieve the day of the week.
Returns
- string day of week (i.e. "Mon")
getDaysInFirstWeek() Method
public int getDaysInFirstWeek()
Retrieve the number of the days in the first week for the month of the
current calendar displayed.
Returns
- integer days in first week
getDaysInLastWeek() Method
public int getDaysInLastWeek()
Retrieve the number of the days in the last week for the month of the
current calendar displayed.
Returns
- integer days in last week
getDaysInMonth() Method
public int getDaysInMonth()
Retrieve the number of days for the month of the current calendar displayed.
Returns
- integer days in month
getDisplayDate() Method
public int getDisplayDate()
Retrieve the day of the month for the current calendar displayed.
Returns
- integer day of month
getDisplayMonth() Method
public String
getDisplayMonth()
Retrieve the month for the current calendar displayed.
Returns
- String month name
getDisplayMonthNumber() Method
public int getDisplayMonthNumber()
Retrieve the month number for the current calendar displayed.
Returns
- integer month number from Calendar
getDisplayYear() Method
public int getDisplayYear()
Retrieve the year for the current calendar displayed.
Returns
- integer year
getStartDayOfWeekInMonth() Method
public int getStartDayOfWeekInMonth()
Retrieve the day the month starts on for the month of the
current calendar displayed.
Returns
- integer days in last week
getTodaysDate() Method
public String
getTodaysDate()
sameDay(int, int, int) Method
public boolean sameDay(int year,
int month,
int day)
simpleFormatTest(String) Method
public String
simpleFormatTest(String
simpleDateFormat)