Class HolidayCalendarDemo.CalendarFrame

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
com.ibm.icu.dev.demo.holiday.HolidayCalendarDemo.CalendarFrame
All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Enclosing class:
HolidayCalendarDemo

private static class HolidayCalendarDemo.CalendarFrame extends Frame implements ActionListener, ItemListener
A Frame is a top-level window with a title. The default layout for a frame is BorderLayout. The CalendarFrame class defines the window layout of CalendarDemo.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization
      See Also:
    • DEBUG

      private static final boolean DEBUG
      See Also:
    • applet

      private DemoApplet applet
    • calendars

      private static final Locale[] calendars
    • displays

      private static final Locale[] displays
    • localeMenu

      private Choice localeMenu
    • displayMenu

      private Choice displayMenu
    • locales

      private Locale[] locales
    • monthLabel

      private Label monthLabel
    • prevYear

      private Button prevYear
    • prevMonth

      private Button prevMonth
    • gotoToday

      private Button gotoToday
    • nextMonth

      private Button nextMonth
    • nextYear

      private Button nextYear
    • calendarPanel

      private HolidayCalendarDemo.CalendarPanel calendarPanel
    • kFirstLocale

      private static final Locale kFirstLocale
  • Constructor Details

    • CalendarFrame

      public CalendarFrame(DemoApplet applet)
      Constructs a new CalendarFrame that is initially invisible.
  • Method Details

    • init

      public void init()
      Initializes the applet. You never need to call this directly, it is called automatically by the system once the applet is created.
    • addWithFont

      void addWithFont(Container container, Component foo, Font font)
    • start

      public void start()
      Called to start the applet. You never need to call this method directly, it is called when the applet's document is visited.
    • add

      private static void add(Container container, Component component, GridBagLayout g, GridBagConstraints c)
    • buildGUI

      public void buildGUI()
    • updateMonthName

      private void updateMonthName()
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handles the event. Returns true if the event is handled and should not be passed to the parent of this component. The default event handler calls some helper methods to make life easier on the programmer.
      Specified by:
      actionPerformed in interface ActionListener
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Specified by:
      itemStateChanged in interface ItemListener
    • errorText

      public void errorText(String s)
      Print out the error message while debugging this program.
    • processWindowEvent

      protected void processWindowEvent(WindowEvent e)
      Overrides:
      processWindowEvent in class Window