Class SpinnerChanger

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

public class SpinnerChanger extends JPanel implements DateChanger, ActionListener
A control which allows the user to modify the month and year displayed in a MiniCal component.
See Also:
  • Field Details

  • Constructor Details

    • SpinnerChanger

      public SpinnerChanger()
      Creates a new SpinnerChanger control comprised of 4 directional buttons for cycling through the month/year values, and a label for displaying the current values.
  • Method Details

    • setMiniCalRef

      public void setMiniCalRef(MiniCal m)
      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
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Implements the ActionListener interface. This method handles the month/year value cyclying when those buttons are selected by the user.
      Specified by:
      actionPerformed in interface ActionListener