org.kuali.student.lum.common.client.widgets
Class GregorianCalendar

java.lang.Object
  extended by org.kuali.student.lum.common.client.widgets.Calendar
      extended by org.kuali.student.lum.common.client.widgets.GregorianCalendar

public class GregorianCalendar
extends Calendar

Title:
GregorianCalendar

Description:
java.util.GregorianCalendar replacment

Version:
$Revision: 0.1 $
Author:
Andre Freller

Field Summary
static int AD
           
static int BC
           
protected static int[] daysInMonth
           
 
Fields inherited from class org.kuali.student.lum.common.client.widgets.Calendar
AM, AM_PM, amPm, APRIL, AUGUST, date, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, dayOfMonth, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, firstWeekDayOfWeek, FRIDAY, hour, HOUR, HOUR_OF_DAY, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, minute, MINUTE, MONDAY, month, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, second, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, year, YEAR, ZONE_OFFSET
 
Constructor Summary
GregorianCalendar()
           
GregorianCalendar(Date date)
           
GregorianCalendar(int year, int month, int date)
           
GregorianCalendar(int year, int month, int date, int hour)
           
GregorianCalendar(int year, int month, int date, int hour, int minute)
           
GregorianCalendar(int year, int month, int date, int hour, int minute, int second)
           
 
Method Summary
 void add(int fieldCode, int amount)
           
 boolean after(GregorianCalendar when)
           
 boolean before(GregorianCalendar when)
           
 Object clone()
           
protected  void computeFields()
           
protected  void computeTime()
           
 boolean equals(GregorianCalendar obj)
           
 int getActualMaximum(int fieldCode)
           
 int getActualMinimum(int fieldCode)
           
 int getFirstWeekDayOfMonth()
           
 int getGreatestMinimum(int fieldCode)
           
 int getLeastMaximum(int fieldCode)
           
 int getMaxDaysInMonth()
           
static int getMaxDaysInMonth(int year, int month)
           
 int getMaximum(int fieldCode)
           
 int getMinimum(int fieldCode)
           
 int getNumOfWeeksInMonth()
           
static int getNumOfWeeksInMonth(int year, int month, int firstDayOfWeek)
           
 int getWeekDay()
           
static int getWeekDay(int year, int month, int dayOfMonth)
           
 boolean isLeapYear()
           
static boolean isLeapYear(int year)
           
 void roll(int fieldCode, int amount)
           
 void set(int fieldCode, int value)
           
 
Methods inherited from class org.kuali.student.lum.common.client.widgets.Calendar
after, after, before, before, complete, equals, equals, get, getFirstWeekDayOfWeek, getTime, getTimeInMillis, hashCode, isSet, roll, set, set, set, set, set, setFirstWeekDayOfWeek, setTime, setTime, setTimeInMillis, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BC

public static final int BC
See Also:
Constant Field Values

AD

public static final int AD
See Also:
Constant Field Values

daysInMonth

protected static int[] daysInMonth
Constructor Detail

GregorianCalendar

public GregorianCalendar()

GregorianCalendar

public GregorianCalendar(Date date)

GregorianCalendar

public GregorianCalendar(int year,
                         int month,
                         int date)

GregorianCalendar

public GregorianCalendar(int year,
                         int month,
                         int date,
                         int hour)

GregorianCalendar

public GregorianCalendar(int year,
                         int month,
                         int date,
                         int hour,
                         int minute)

GregorianCalendar

public GregorianCalendar(int year,
                         int month,
                         int date,
                         int hour,
                         int minute,
                         int second)
Method Detail

getMaxDaysInMonth

public static int getMaxDaysInMonth(int year,
                                    int month)

getMaxDaysInMonth

public int getMaxDaysInMonth()

getNumOfWeeksInMonth

public static int getNumOfWeeksInMonth(int year,
                                       int month,
                                       int firstDayOfWeek)

getNumOfWeeksInMonth

public int getNumOfWeeksInMonth()

getWeekDay

public static int getWeekDay(int year,
                             int month,
                             int dayOfMonth)

getWeekDay

public int getWeekDay()

getFirstWeekDayOfMonth

public int getFirstWeekDayOfMonth()

getMinimum

public int getMinimum(int fieldCode)
Specified by:
getMinimum in class Calendar

getActualMinimum

public int getActualMinimum(int fieldCode)
Specified by:
getActualMinimum in class Calendar

getGreatestMinimum

public int getGreatestMinimum(int fieldCode)
Specified by:
getGreatestMinimum in class Calendar

getMaximum

public int getMaximum(int fieldCode)
Specified by:
getMaximum in class Calendar

getActualMaximum

public int getActualMaximum(int fieldCode)
Specified by:
getActualMaximum in class Calendar

getLeastMaximum

public int getLeastMaximum(int fieldCode)
Specified by:
getLeastMaximum in class Calendar

set

public void set(int fieldCode,
                int value)
Specified by:
set in class Calendar

add

public void add(int fieldCode,
                int amount)
Specified by:
add in class Calendar

roll

public void roll(int fieldCode,
                 int amount)
Specified by:
roll in class Calendar

before

public boolean before(GregorianCalendar when)

after

public boolean after(GregorianCalendar when)

equals

public boolean equals(GregorianCalendar obj)

isLeapYear

public boolean isLeapYear()

isLeapYear

public static boolean isLeapYear(int year)

computeFields

protected void computeFields()
Specified by:
computeFields in class Calendar

computeTime

protected void computeTime()
Specified by:
computeTime in class Calendar

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.