|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmvp.View
caltool.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.JMenu |
menu
Pre-cast reference to this' widget, which is a menu |
protected javax.swing.JMenuItem |
showHideAppointmentsItem
Show/Hide Appointments menu item. |
protected javax.swing.JMenuItem |
showHideEventsItem
Show/Hide Events menu item. |
protected javax.swing.JMenuItem |
showHideMeetingsItem
Show/Hide Meetings menu item. |
protected javax.swing.JMenuItem |
showHideTasksItem
Show/Hide Tasks menu item. |
protected javax.swing.JMenu |
submenu
Temp submenu vars, used in item-adding methods |
protected javax.swing.JMenu |
submenu2
Temp submenu vars, used in item-adding methods |
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 |
addCalendarsSubmenu()
Add the 'Calendars' menu item. |
void |
addDayItem()
Add the 'Day' menu item. |
void |
addFilterAppointmentsItem()
Add the 'Filter->Show/Hide Appointments' menu item. |
void |
addFilterCustomSubmenu()
Add the 'Filter->Custom' submenu. |
void |
addFilterEventsItem()
Add the 'Filter->Show/Hide Events' menu item. |
void |
addFilterMeetingsItem()
Add the 'Filter->Show/Hide Meetings' menu item. |
void |
addFilterSubmenu()
Add the 'Filter' menu item, which is a cascading pullright containing 'Show/Hide Appointments', 'Show/Hide Meetings', 'Show/Hide Tasks', 'Show/Hide Events', and 'Custom' items. |
void |
addFilterTasksItem()
Add the 'Filter->Show/Hide Tasks' menu item. |
void |
addGotoDateItem()
Add the 'Goto Date ...' menu item. |
void |
addGroupItem()
Add the 'Group ...' menu item. |
void |
addItemItem()
Add the 'Item' menu item. |
void |
addListsAllItemsItem()
Add the 'Lists->All Items' menu item. |
void |
addListsAppointmentsItem()
Add the 'Lists->Appointments' menu item. |
void |
addListsCustomSubmenu()
Add the 'Lists->Custom' submenu. |
void |
addListsEventsItem()
Add the 'Lists->Events' menu item. |
void |
addListsMeetingsItem()
Add the 'Lists->Meetings' menu item. |
void |
addListsSubmenu()
Add the 'Lists' menu item, which is a cascading pullright containing 'Appointments', 'Meetings', 'Tasks', 'Events', 'All Items', and 'Custom' items. |
void |
addListsTasksItem()
Add the 'Lists->Tasks' menu item. |
void |
addMonthItem()
|
void |
addNextItem()
Add the 'Next' menu item. |
void |
addOtherUserItem()
Add the 'Other User ...' menu item. |
void |
addPreviousItem()
Add the 'Previous' menu item. |
void |
addTodayItem()
Add the 'Today' menu item. |
void |
addWeekSubmenu()
Add the 'Week' menu item, which is a cascading pullright containing 'Table' and 'List' items. |
void |
addWindowsCloseItem()
Add the 'Windows->Close' menu item. |
void |
addWindowsMagnetizeItem()
Add the 'Windows->Magnetize' menu item. |
void |
addWindowsMultiWindowModeItem()
Add the 'Windows->Windowing Mode->Multi-Window' menu item. |
void |
addWindowsPerLevelModeItem()
Add the 'Windows->Windowing Mode->Per-Level' menu item. |
void |
addWindowsSubmenu()
Add the 'Windows' menu item. |
void |
addWindowsTwoWindowModeItem()
Add the 'Windows->Windowing Mode->Two-Window' menu item. |
void |
addWindowsWindowingModeSubmenu()
Add the 'Windows->Windowing Mode' submenu. |
void |
addYearItem()
Add the 'Year' 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 submenu
protected javax.swing.JMenu submenu2
protected javax.swing.JMenu menu
protected javax.swing.JMenuItem showHideAppointmentsItem
protected javax.swing.JMenuItem showHideMeetingsItem
protected javax.swing.JMenuItem showHideTasksItem
protected javax.swing.JMenuItem showHideEventsItem
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 addItemItem()
public void addDayItem()
public void addWeekSubmenu()
public void addMonthItem()
public void addYearItem()
public void addNextItem()
public void addPreviousItem()
public void addTodayItem()
public void addGotoDateItem()
public void addListsSubmenu()
public void addListsAppointmentsItem()
public void addListsMeetingsItem()
public void addListsTasksItem()
public void addListsEventsItem()
public void addListsAllItemsItem()
public void addListsCustomSubmenu()
public void addFilterSubmenu()
public void addFilterAppointmentsItem()
public void addFilterMeetingsItem()
public void addFilterTasksItem()
public void addFilterEventsItem()
public void addFilterCustomSubmenu()
public void addOtherUserItem()
public void addGroupItem()
public void addWindowsSubmenu()
public void addWindowsCloseItem()
public void addWindowsWindowingModeSubmenu()
public void addWindowsTwoWindowModeItem()
public void addWindowsPerLevelModeItem()
public void addWindowsMultiWindowModeItem()
public void addWindowsMagnetizeItem()
public void addCalendarsSubmenu()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |