ca.cbc.sportwire.servlet.data
Class VelocityCalendar

java.lang.Object
  |
  +--java.util.Calendar
        |
        +--java.util.GregorianCalendar
              |
              +--ca.cbc.sportwire.servlet.data.VelocityCalendar
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class VelocityCalendar
extends java.util.GregorianCalendar

VelocityCalendar: Wraps GregorianCalendar into a package easier to use with Velocity

Created: Sun Dec 16 11:52:12 2001
 $Log: VelocityCalendar.java,v $
 Revision 1.3  2001/12/17 17:50:13  garym
 Added date as vcal

 Revision 1.2  2001/12/17 09:36:26  garym
 default page bug fixed. debug msg errors in Lineup and vcal

 Revision 1.1  2001/12/16 22:01:56  garym
 fixes to default page handling


 

Version:
$Id: VelocityCalendar.java,v 1.3 2001/12/17 17:50:13 garym Exp $
Author:
Gary Lawrence Murphy
See Also:
Serialized Form

Field Summary
private  java.text.DateFormat format
           
private  java.util.Locale locale
           
private  int style
           
 
Fields inherited from class java.util.GregorianCalendar
AD, BC, EPOCH_JULIAN_DAY, EPOCH_YEAR, gregorianCutover, gregorianCutoverYear, JAN_1_1_JULIAN_DAY, LEAP_MONTH_LENGTH, LEAP_NUM_DAYS, LEAST_MAX_VALUES, MAX_VALUES, MIN_VALUES, MONTH_LENGTH, normalizedGregorianCutover, NUM_DAYS, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, serialVersionUID
 
Fields inherited from class java.util.Calendar
AM, AM_PM, APRIL, areAllFieldsSet, areFieldsSet, AUGUST, cachedLocaleData, currentSerialVersion, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, FIELD_NAME, fields, firstDayOfWeek, FRIDAY, HOUR, HOUR_OF_DAY, INTERNALLY_SET, isSet, isTimeSet, JANUARY, JULY, JUNE, lenient, MARCH, MAY, MILLISECOND, minimalDaysInFirstWeek, MINIMUM_USER_STAMP, MINUTE, MONDAY, MONTH, nextStamp, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, serialVersionOnStream, stamp, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, UNSET, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, zone, ZONE_OFFSET
 
Constructor Summary
protected VelocityCalendar()
           
protected VelocityCalendar(java.lang.String timezone)
           
 
Method Summary
 java.util.Date fromString(java.lang.String date)
           
 java.text.DateFormat getFormat()
          Get the value of format.
static java.util.Calendar getInstance()
           
static java.util.Calendar getInstance(java.lang.String tz)
           
 java.util.Locale getLocale()
          Get the value of locale.
 int getStyle()
          Get the value of style.
 void setFormat(java.util.Locale v)
          Set the value of format.
 void setLocale(java.util.Locale v)
          Set the value of locale.
 void setStyle(int v)
          Set the value of style.
 java.lang.String toString()
           
 
Methods inherited from class java.util.GregorianCalendar
, add, aggregateStamp, boundsCheck, computeFields, computeJulianDay, computeTime, equals, floorDivide, floorDivide, floorDivide, floorDivide, getActualMaximum, getActualMinimum, getEpochDay, getGreatestMinimum, getGregorianChange, getISOYear, getLeastMaximum, getMaximum, getMinimum, hashCode, inDaylightTime, internalGetEra, isLeapYear, julianDayToDayOfWeek, julianDayToMillis, millisToJulianDay, monthLength, monthLength, pinDayOfMonth, prevMonthLength, roll, roll, setGregorianChange, timeToFields, validateFields, weekNumber, yearLength, yearLength
 
Methods inherited from class java.util.Calendar
after, before, clear, clear, clone, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, getTimeZone, internalGet, internalSet, isLenient, isSet, readObject, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, setTimeZone, setWeekCountData, updateTime, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

locale

private java.util.Locale locale

format

private java.text.DateFormat format

style

private int style
Constructor Detail

VelocityCalendar

protected VelocityCalendar()

VelocityCalendar

protected VelocityCalendar(java.lang.String timezone)
Method Detail

getLocale

public java.util.Locale getLocale()
Get the value of locale.
Returns:
Locale value of locale.

setLocale

public void setLocale(java.util.Locale v)
Set the value of locale.
Parameters:
v - Value to assign to locale.

getFormat

public java.text.DateFormat getFormat()
Get the value of format.
Returns:
DateFormat value of format.

getStyle

public int getStyle()
Get the value of style.
Returns:
int value of style.

setStyle

public void setStyle(int v)
Set the value of style.
Parameters:
v - Value to assign to style.

setFormat

public void setFormat(java.util.Locale v)
Set the value of format.
Parameters:
v - Locale for DateFormat.

getInstance

public static java.util.Calendar getInstance()

getInstance

public static java.util.Calendar getInstance(java.lang.String tz)

fromString

public java.util.Date fromString(java.lang.String date)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Calendar