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

java.lang.Object
  extended by org.kuali.student.lum.common.client.widgets.Calendar
Direct Known Subclasses:
GregorianCalendar

public abstract class Calendar
extends Object

Title:
Calendar

Description:
java.util.Calendar replacment

Version:
$Revision: 0.1 $
Author:
Andre Freller

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

Field Detail

AM

public static final int AM
See Also:
Constant Field Values

AM_PM

public static final int AM_PM
See Also:
Constant Field Values

PM

public static final int PM
See Also:
Constant Field Values

JANUARY

public static final int JANUARY
See Also:
Constant Field Values

FEBRUARY

public static final int FEBRUARY
See Also:
Constant Field Values

MARCH

public static final int MARCH
See Also:
Constant Field Values

APRIL

public static final int APRIL
See Also:
Constant Field Values

MAY

public static final int MAY
See Also:
Constant Field Values

JUNE

public static final int JUNE
See Also:
Constant Field Values

JULY

public static final int JULY
See Also:
Constant Field Values

AUGUST

public static final int AUGUST
See Also:
Constant Field Values

SEPTEMBER

public static final int SEPTEMBER
See Also:
Constant Field Values

OCTOBER

public static final int OCTOBER
See Also:
Constant Field Values

NOVEMBER

public static final int NOVEMBER
See Also:
Constant Field Values

DECEMBER

public static final int DECEMBER
See Also:
Constant Field Values

UNDECIMBER

public static final int UNDECIMBER
See Also:
Constant Field Values

SUNDAY

public static final int SUNDAY
See Also:
Constant Field Values

MONDAY

public static final int MONDAY
See Also:
Constant Field Values

TUESDAY

public static final int TUESDAY
See Also:
Constant Field Values

WEDNESDAY

public static final int WEDNESDAY
See Also:
Constant Field Values

THURSDAY

public static final int THURSDAY
See Also:
Constant Field Values

FRIDAY

public static final int FRIDAY
See Also:
Constant Field Values

SATURDAY

public static final int SATURDAY
See Also:
Constant Field Values

ERA

public static final int ERA
See Also:
Constant Field Values

YEAR

public static final int YEAR
See Also:
Constant Field Values

MONTH

public static final int MONTH
See Also:
Constant Field Values

WEEK_OF_YEAR

public static final int WEEK_OF_YEAR
See Also:
Constant Field Values

WEEK_OF_MONTH

public static final int WEEK_OF_MONTH
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

DAY_OF_MONTH

public static final int DAY_OF_MONTH
See Also:
Constant Field Values

DAY_OF_YEAR

public static final int DAY_OF_YEAR
See Also:
Constant Field Values

DAY_OF_WEEK

public static final int DAY_OF_WEEK
See Also:
Constant Field Values

DAY_OF_WEEK_IN_MONTH

public static final int DAY_OF_WEEK_IN_MONTH
See Also:
Constant Field Values

HOUR

public static final int HOUR
See Also:
Constant Field Values

HOUR_OF_DAY

public static final int HOUR_OF_DAY
See Also:
Constant Field Values

MINUTE

public static final int MINUTE
See Also:
Constant Field Values

SECOND

public static final int SECOND
See Also:
Constant Field Values

MILLISECOND

public static final int MILLISECOND
See Also:
Constant Field Values

ZONE_OFFSET

public static final int ZONE_OFFSET
See Also:
Constant Field Values

DST_OFFSET

public static final int DST_OFFSET
See Also:
Constant Field Values

FIELD_COUNT

public static final int FIELD_COUNT
See Also:
Constant Field Values

date

protected Date date

second

protected int second

minute

protected int minute

hour

protected int hour

dayOfMonth

protected int dayOfMonth

month

protected int month

year

protected int year

amPm

protected int amPm

firstWeekDayOfWeek

protected int firstWeekDayOfWeek
Constructor Detail

Calendar

protected Calendar()
Method Detail

setTime

public void setTime(Date date)

setTime

public void setTime(Calendar cal)

setTimeInMillis

public void setTimeInMillis(long milliSeconds)

set

public void set(int year,
                int month,
                int dayOfMonth)

set

public void set(int year,
                int month,
                int dayOfMonth,
                int hour)

set

public void set(int year,
                int month,
                int dayOfMonth,
                int hour,
                int minute)

set

public void set(int year,
                int month,
                int dayOfMonth,
                int hour,
                int minute,
                int second)

set

public void set(int fieldCode,
                String value)

set

public abstract void set(int fieldCode,
                         int value)

setFirstWeekDayOfWeek

public void setFirstWeekDayOfWeek(int firstWeekDayOfWeek)

getTime

public Date getTime()

getTimeInMillis

public long getTimeInMillis()

get

public int get(int fieldCode)

getFirstWeekDayOfWeek

public int getFirstWeekDayOfWeek()

before

public boolean before(Date when)

before

public boolean before(Calendar when)

after

public boolean after(Date when)

after

public boolean after(Calendar when)

equals

public boolean equals(Date obj)

equals

public boolean equals(Calendar obj)

isSet

public boolean isSet(int fieldCode)

roll

public void roll(int fieldCode,
                 boolean up)

complete

protected void complete()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

computeFields

protected abstract void computeFields()

computeTime

protected abstract void computeTime()

getMinimum

public abstract int getMinimum(int fieldCode)

getActualMinimum

public abstract int getActualMinimum(int fieldCode)

getGreatestMinimum

public abstract int getGreatestMinimum(int fieldCode)

getMaximum

public abstract int getMaximum(int fieldCode)

getActualMaximum

public abstract int getActualMaximum(int fieldCode)

getLeastMaximum

public abstract int getLeastMaximum(int fieldCode)

add

public abstract void add(int fieldCode,
                         int amount)

roll

public abstract void roll(int fieldCode,
                          int amount)


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