[ Previous section | Next section | This Package | Package List | Table of Contents ]

Class Calendar

public class extend.awt.Calendar extends java.awt.Panel {
   public static final int No_Names
   public static final int Short_Names
   public static final int Long_Names
   public Calendar(int)
}
The Calendar class provides a visual control for displaying a month of days at a time. Scroll buttons are provided to change the month being displayed.

Fields

No_Names

public final static int No_Names
Used to suppress the display of day names.

Short_Names

public final static int Short_Names
Used to display day names as three character abbreviations.

Lont_Names

public final static int Lont_Names
Used to display the full names of days.

Constructors

Calendar

public Calendar (int dayName)
This is the only constructor for the Calendar class. The default date is set to the current date.

Parameters:
dayName - The day name indicator. It must be one of No_Names (to suppress day name display), Short_Names (to display 3-character day names) or Long_Names (to display full length day names).
Throws:
IllegalArgumentException This exception is thrown when any argument is not valid.

Events

The following table lists the relevant contents of an Event object and under what circumstances the event is posted. All events are posted to the owner of the calendar. The event.target attribute will always hold a reference to the calendar.

Event.id Event.arg Event posting trigger
ACTION_EVENT An ADate object containing the date the user clicked on. The user clicked on one of the day buttons on the calendar.


[ Previous section | Next section | This Package | Package List | Table of Contents ]