caltool.schedule_ui
Class ScheduleMenu
java.lang.Object
mvp.View
caltool.schedule_ui.ScheduleMenu
- All Implemented Interfaces:
- java.io.Serializable, java.util.Observer
public class ScheduleMenu
- extends mvp.View
Class ScheduleMenu is the pulldown menu view of the model class. The first four items of the menu
correspond to the public Schedule methods. The last item corresponds to the
Categories component of Schedule, which is the editable list of scheduled
item categories.
The four items that correspond to methods each launch a method input dialog.
The last menu item, that corresponds to the categories list, launches a
non-modal category editing dialog.
In terms of Java Swing components, the ScheduleMenu widget is a Java JMenu.
Anonymous instances of JMenuItem are defined for each menu item. Details of
the dialog structures are given in their respective class definitions.
- See Also:
- Serialized Form
Fields inherited from class mvp.View |
closeAdapter, editable, model, screen, shown, widget, window |
Constructor Summary |
ScheduleMenu(mvp.Screen screen,
Schedule schedule,
ScheduleUI scheduleUI)
Construct this with the given Schedule model and parent ScheduleUI view. |
Method Summary |
java.awt.Component |
compose()
Compose this by inserting each of its five 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 |
scheduleUI
protected ScheduleUI scheduleUI
- The parent view.
ScheduleMenu
public ScheduleMenu(mvp.Screen screen,
Schedule schedule,
ScheduleUI scheduleUI)
- Construct this with the given Schedule model and parent ScheduleUI view.
compose
public java.awt.Component compose()
- Compose this by inserting each of its five menu items into the pulldown
menu. The items are Appointment, Meeting, Task, Event, and Categories.
A JSeparator is placed after the 'Event ...' item.
- Overrides:
compose
in class mvp.View