© 2005 BEA Systems, Inc.

com.beasys.commerce.axiom.util
Class CalendarBean

java.lang.Object
  extended bycom.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:
Constant Field Values
Constructor Detail

CalendarBean

public CalendarBean()
Method Detail

addMonthDisplayCalendar

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


addYearDisplayCalendar

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


getCompleteWeeksInMonth

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

Returns:
integer days in month

getCurrentDate

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

Returns:
integer the day of the month for the current date

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

getCurrentYear

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

Returns:
integer the year for the current date

getCurrentZoneId

public String getCurrentZoneId()

getDateSeconds

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

getDayOfWeek

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

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

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

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

getDaysInMonth

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

Returns:
integer days in month

getDisplayDate

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

Returns:
integer day of month

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

getDisplayYear

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

Returns:
integer year

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

getTodaysDate

public String getTodaysDate()

sameDay

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

simpleFormatTest

public String simpleFormatTest(String simpleDateFormat)

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved