Class tea.set.CalendarA
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.set.CalendarA

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----tea.set.BaseA
                                           |
                                           +----tea.set.CalendarA

public class CalendarA
extends BaseA
CalendarA is an applet wrapper for Calendar widget. It supports the same set of functionality as Calendar, and provides an applet interface so it can be used inside a HTML page. Parameters supported by CalendarA include:
Calendar.YEAR
the year of the month of this calendar. Year is the number of years since 1900. So pass 96 for 1996.
Calendar.MONTH
the month of the calendar. Month starts from 0 in the range 0 - 11.
Calendar.TITLE -
NO_TITLE
only display day matrix
WEEK
display weekday header
MONTH_WEEK
display month name and weekday header
ALL
display month name, year, and weekday header
Calendar.HIGHLIGHT
a list comma separated day number or range (number separated by '-') to specify the days to highlight.
CalendarA prints the day range selection to System.out when a selection is made. Since this default action does not make it useful, a new applet class probably needs to be created to override the action() to do something else. The action() has the same semantics as Calendar.
See Also:
Calendar

Constructor Index

 o CalendarA()
Applet constructor.

Method Index

 o action(Event, Object)
Action should be overriden if day range selection needs to be handled.
 o init()
Applet initialization method.
 o main(String[])

Constructors

 o CalendarA
  public CalendarA()
Applet constructor.

Methods

 o init
  public void init()
Applet initialization method.
Overrides:
init in class Applet
 o action
  public boolean action(Event e,
                        Object arg)
Action should be overriden if day range selection needs to be handled.
Overrides:
action in class Component
 o main
  public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index