caltool.options_ui
Class OptionsMenu

java.lang.Object
  extended by mvp.View
      extended by caltool.options_ui.OptionsMenu
All Implemented Interfaces:
java.io.Serializable, java.util.Observer

public class OptionsMenu
extends mvp.View

Class OptionsMenu is the pulldown menu view of the model class. The OptionsMenu widget is a Java JMenu. Anonymous instances of JMenuItem are defined for each item in the menu.

See Also:
Serialized Form

Field Summary
protected  OptionsUI optionsUI
          Parent view
 
Fields inherited from class mvp.View
closeAdapter, editable, model, screen, shown, widget, window
 
Constructor Summary
OptionsMenu(mvp.Screen screen, Options options, OptionsUI optionsUI)
          Construct this with the given Options model.
 
Method Summary
 java.awt.Component compose()
          Compose this by inserting each of its three menu items into the pulldown menu.
 
Methods inherited from class mvp.View
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setExitOnClose, setModel, show, show, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optionsUI

protected OptionsUI optionsUI
Parent view

Constructor Detail

OptionsMenu

public OptionsMenu(mvp.Screen screen,
                   Options options,
                   OptionsUI optionsUI)
Construct this with the given Options model.

Method Detail

compose

public java.awt.Component compose()
Compose this by inserting each of its three menu items into the pulldown menu. The items are Times and Dates, Scheduling, Viewing, and Administrative.

Overrides:
compose in class mvp.View