com.beasys.commerce.axiom.util
Class CalendarBean

java.lang.Object
  extended by com.beasys.commerce.axiom.util.CalendarBean
All Implemented Interfaces
Serializable

public class CalendarBean
extends Object
implements Serializable

See Also
Serialized Form

Field Summary
static String DATE_FORMAT
          The formatting string used to represent a date.
 
Constructor Summary
CalendarBean()
           
 
Method Summary
 void addMonthDisplayCalendar(int num)
          Change the month which is displayed.
 void addYearDisplayCalendar(int num)
          Change the year which is displayed.
 int getCompleteWeeksInMonth()
          Retrieve the number of complete weeks for the month of the current calendar displayed.
 int getCurrentDate()
          Retrieve the day for the current date.
 String getCurrentMonth()
          Retrieve the month for the current date.
 int getCurrentMonthNumber()
          Retrieve the month number for the current date.
 int getCurrentYear()
          Retrieve the year for the current date.
 String getCurrentZoneId()
           
 long getDateSeconds(String theYear, String theMonth, String theDate, String theHour, String theMinute, String aTimezone)
           
 String getDayOfWeek(int dayNum)
          Retrieve the day of the week.
 int getDaysInFirstWeek()
          Retrieve the number of the days in the first week for the month of the current calendar displayed.
 int getDaysInLastWeek()
          Retrieve the number of the days in the last week for the month of the current calendar displayed.
 int getDaysInMonth()
          Retrieve the number of days for the month of the current calendar displayed.
 int getDisplayDate()
          Retrieve the day of the month for the current calendar displayed.
 String getDisplayMonth()
          Retrieve the month for the current calendar displayed.
 int getDisplayMonthNumber()
          Retrieve the month number for the current calendar displayed.
 int getDisplayYear()
          Retrieve the year for the current calendar displayed.
 int getStartDayOfWeekInMonth()
          Retrieve the day the month starts on for the month of the current calendar displayed.
 String getTodaysDate()
           
 boolean sameDay(int year, int month, int day)
           
 String simpleFormatTest(String simpleDateFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final String DATE_FORMAT
The formatting string used to represent a date.

See Also
Constants Summary
Constructor Detail

CalendarBean

public CalendarBean()
Method Detail

getCurrentMonth

public String getCurrentMonth()
Retrieve the month for the current date.

Returns
String month name

getCurrentMonthNumber

public int getCurrentMonthNumber()
Retrieve the month number for the current date.

Returns
integer month number returned from Calendar class

getCurrentDate

public int getCurrentDate()
Retrieve the day for the current date.

Returns
integer the day of the month for the current date

getCurrentYear

public int getCurrentYear()
Retrieve the year for the current date.

Returns
integer the year for the current date

getDisplayMonth

public String getDisplayMonth()
Retrieve the month for the current calendar displayed.

Returns
String month name

getDisplayMonthNumber

public int getDisplayMonthNumber()
Retrieve the month number for the current calendar displayed.

Returns
integer month number from Calendar

getDisplayDate

public int getDisplayDate()
Retrieve the day of the month for the current calendar displayed.

Returns
integer day of month

getDisplayYear

public int getDisplayYear()
Retrieve the year for the current calendar displayed.

Returns
integer year

getDaysInMonth

public int getDaysInMonth()
Retrieve the number of days for the month of the current calendar displayed.

Returns
integer days in month

getCompleteWeeksInMonth

public int getCompleteWeeksInMonth()
Retrieve the number of complete weeks for the month of the current calendar displayed.

Returns
integer days in month

getDaysInLastWeek

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

getDaysInFirstWeek

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

getStartDayOfWeekInMonth

public int getStartDayOfWeekInMonth()
Retrieve the day the month starts on for the month of the current calendar displayed.

Returns
integer days in last week

getDayOfWeek

public String getDayOfWeek(int dayNum)
Retrieve the day of the week.

Returns
string day of week (i.e. "Mon")

addMonthDisplayCalendar

public void addMonthDisplayCalendar(int num)
Change the month which is displayed.

Parameters
integer - number by which to increment or decrement the month.

addYearDisplayCalendar

public void addYearDisplayCalendar(int num)
Change the year which is displayed.

Parameters
integer - number by which to increment or decrement the year.

getTodaysDate

public String getTodaysDate()

getCurrentZoneId

public String getCurrentZoneId()

getDateSeconds

public long getDateSeconds(String theYear,
                           String theMonth,
                           String theDate,
                           String theHour,
                           String theMinute,
                           String aTimezone)

simpleFormatTest

public String simpleFormatTest(String simpleDateFormat)

sameDay

public boolean sameDay(int year,
                       int month,
                       int day)


Copyright © 2006 BEA Systems, Inc. All Rights Reserved