|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmvp.View
scheduler.view.view_ui.ViewMenu
public class ViewMenu
Class ViewMenu is the pulldown menu view of the model class. The ViewMenu widget is a Java JMenu. Anonymous instances
of JMenuItem are defined for each item in the menu.
Field Summary | |
---|---|
protected javax.swing.JMenuItem |
conflicts
|
protected javax.swing.JMenuItem |
course
|
protected javax.swing.JMenuItem |
fairness
|
protected javax.swing.JMenuItem |
instructor
|
protected javax.swing.JMenuItem |
location
|
protected javax.swing.JMenu |
menu
Pre-cast reference to this' widget, which is a menu |
protected javax.swing.JMenuItem |
quality
|
(package private) ViewUI |
viewUI
The parent view. |
Fields inherited from class mvp.View |
---|
closeAdapter, editable, model, screen, shown, widget, window |
Constructor Summary | |
---|---|
ViewMenu(mvp.Screen screen,
View view,
ViewUI viewUI)
Construct this with the given name as the pulldown label. |
Method Summary | |
---|---|
void |
addAdvancedFilterItem()
Add the 'Advanced Filter' menu item. |
void |
addConflictsItem()
Add the 'Conflicts' menu item. |
void |
addCourseItem()
Add the 'Course' menu item. |
void |
addFairnessItem()
Add the 'Fairness' menu item. |
void |
addInstructorItem()
Add the 'Instructor' menu item. |
void |
addLocationItem()
Add the 'Location' menu item. |
void |
addQualityItem()
Add the 'Quality' menu item. |
java.awt.Component |
compose()
Compose this by inserting each of its 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 javax.swing.JMenu menu
protected javax.swing.JMenuItem course
protected javax.swing.JMenuItem instructor
protected javax.swing.JMenuItem location
protected javax.swing.JMenuItem conflicts
protected javax.swing.JMenuItem fairness
protected javax.swing.JMenuItem quality
ViewUI viewUI
Constructor Detail |
---|
public ViewMenu(mvp.Screen screen, View view, ViewUI viewUI)
Method Detail |
---|
public java.awt.Component compose()
JMenu.add(new JMenuItem("Item name").addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { model.method()
compose
in class mvp.View
public void addCourseItem()
public void addInstructorItem()
public void addLocationItem()
public void addAdvancedFilterItem()
public void addConflictsItem()
public void addFairnessItem()
public void addQualityItem()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |