caltool.edit_ui
Class EditMenu

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

public class EditMenu
extends mvp.View

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class mvp.View
closeAdapter, editable, model, screen, shown, widget, window
 
Constructor Summary
EditMenu(mvp.Screen screen, Edit edit, EditUI editUI)
          Construct this with the given name as the pulldown label.
 
Method Summary
 java.awt.Component compose()
          Compose this by inserting each of its ten 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
 

Constructor Detail

EditMenu

public EditMenu(mvp.Screen screen,
                Edit edit,
                EditUI editUI)
Construct this with the given name as the pulldown label. The given Edit is the companion model.

Method Detail

compose

public java.awt.Component compose()
Compose this by inserting each of its ten menu items into the pulldown menu. The items are Undo, Redo, Cut, copy, Past, Delete, Select All, and Find. JSeparators are placed after the 'Redo' and 'Select All' items.

Overrides:
compose in class mvp.View