Class ButtonChanger

All Implemented Interfaces:
DateChanger, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class ButtonChanger extends JPanel implements DateChanger, PropertyChangeListener
A control which allows the user to modify the month and year displayed in a MiniCal component. This control presents the months up-front as selectable labels, as opposed to forcing them to scroll through a list.
Author:
Kapono Carter
See Also:
  • Constructor Details

    • ButtonChanger

      public ButtonChanger()
      Creates a new instance of this control, containing 2 rows of labels, each row containing 6 columns.
  • Method Details

    • setMiniCalRef

      public void setMiniCalRef(MiniCal mc)
      Implements the DateChanger interface. Establishes the MiniCal instance which should be updated when the user changes the month/year.
      Specified by:
      setMiniCalRef in interface DateChanger
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Implements the PropertyChangeListener interface. This component is interested in MiniCal "Date" and "SelectedDate" property change events.
      Specified by:
      propertyChange in interface PropertyChangeListener