caltool.admin_ui
Class AdminMenu

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

public class AdminMenu
extends mvp.View

Class AdminMenu is the pulldown menu view of the model class. The AdminMenu 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
AdminMenu(mvp.Screen screen, Admin admin, AdminUI adminUI)
          Construct this with the give Admin model.
 
Method Summary
 java.awt.Component compose()
          Compose this by inserting each of its four 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

AdminMenu

public AdminMenu(mvp.Screen screen,
                 Admin admin,
                 AdminUI adminUI)
Construct this with the give Admin model.

Method Detail

compose

public java.awt.Component compose()
Compose this by inserting each of its four menu items into the pulldown menu. The items are Users, Groups, Locations, Central Host, List Admins, and Login. A JSeparator is placed after the 'Locations' item.

Overrides:
compose in class mvp.View