|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmvp.View
caltool.schedule_ui.ScheduleMenu
public class ScheduleMenu
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.
Field Summary | |
---|---|
protected ScheduleUI |
scheduleUI
The parent view. |
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 |
Field Detail |
---|
protected ScheduleUI scheduleUI
Constructor Detail |
---|
public ScheduleMenu(mvp.Screen screen, Schedule schedule, ScheduleUI scheduleUI)
Method Detail |
---|
public java.awt.Component compose()
compose
in class mvp.View
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |