All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.set.MCalendarA

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

public class MCalendarA
extends BaseA
MCalendarA is an applet wrapper for MCalendar widget. It supports the same set of functionality as MCalendar, and provides an applet interface so it can be used inside a HTML page. Parameters supported by MCalendarA include:
MCalendar.YEAR
the year of the month of this calendar. Year is the number of years since 1900. So pass 96 for 1996.
MCalendar.MONTH
the month of the calendar. Month starts from 0 in the range 0 - 11.
MCalendar.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
MCalendar.HIGHLIGHT
a list comma separated day number or range (number separated by '-') to specify the days to highlight.
MCalendarA 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 MCalendar.

See Also:
MCalendar

Constructor Index

 o MCalendarA()
Applet constructor.

Method Index

 o getWidget()
This method is overriden by actual applet to return the widget corresponding to this applet wrapper.
 o init()
Applet initialization method.
 o main(String[])

Constructors

 o MCalendarA
 public MCalendarA()
Applet constructor.

Methods

 o init
 public void init()
Applet initialization method.

Overrides:
init in class Applet
 o getWidget
 public Component getWidget()
This method is overriden by actual applet to return the widget corresponding to this applet wrapper. User can use this method to access the underlying widget directly.

Returns:
MCalendar widget.
Overrides:
getWidget in class BaseA
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index