JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.calendar
Class JCCalendar.DateMonthYear

java.lang.Object
  |
  +--com.klg.jclass.util.calendar.JCCalendar.DateMonthYear
All Implemented Interfaces:
SpecialDate
Enclosing class:
JCCalendar

public static class JCCalendar.DateMonthYear
extends Object
implements SpecialDate

Class to store a DateMonthYear value.

For example:
July 4th, 1776 --> new DateMonthYear(1776, 7, 4)


Field Summary
 int date
           
 int month
           
 int year
           
 
Constructor Summary
JCCalendar.DateMonthYear(Calendar c)
          Creates a DateMonthYear object with a date, month, and year stored in the given Calendar object.
JCCalendar.DateMonthYear(Date d)
          Creates a DateMonthYear object with a date, month, and year stored in the given Date object.
JCCalendar.DateMonthYear(int date, int month, int year)
          Creates a DateMonthYear object with the specified date, month, and year.
 
Method Summary
 boolean isSpecialDate(int year, int month, int date, int week)
          Returns whether the given date is special.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

year

public int year

month

public int month

date

public int date
Constructor Detail

JCCalendar.DateMonthYear

public JCCalendar.DateMonthYear(int date,
                                int month,
                                int year)
Creates a DateMonthYear object with the specified date, month, and year.

Parameters:
date - the day of the month
month - 0 based: 0 = January ... 11 = December
year - the year to use (for example, 1997)

JCCalendar.DateMonthYear

public JCCalendar.DateMonthYear(Calendar c)
Creates a DateMonthYear object with a date, month, and year stored in the given Calendar object.

Parameters:
c - the Calendar object which stores the specified date

JCCalendar.DateMonthYear

public JCCalendar.DateMonthYear(Date d)
Creates a DateMonthYear object with a date, month, and year stored in the given Date object.

Parameters:
d - the Date object which stores the specified date
Method Detail

isSpecialDate

public boolean isSpecialDate(int year,
                             int month,
                             int date,
                             int week)
Returns whether the given date is special.

Specified by:
isSpecialDate in interface SpecialDate
Parameters:
year - the year to use (for example, 1997)
month - the month (0 to 11)
date - the day of the month
week - the week of the month
Returns:
Is the date specified special?

Copyright © 2004 Quest Software Inc..
All rights reserved.