public class FileMenu
extends mvp.View
| Constructor and Description |
|---|
FileMenu(mvp.Screen screen,
File file,
FileUI fileUI)
Construct this with the given File model.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCloseAllItem()
Add the 'Close All menu item.
|
protected void |
addCloseItem()
Add the 'Close' menu item.
|
protected void |
addExitItem()
Add the 'Exit' menu item.
|
protected void |
addLoadSettingsItem()
Add the 'Load Settings' menu item.
|
protected void |
addNewItem()
Add the 'New' menu item.
|
protected void |
addOpenItem()
Add the 'Open ...' menu item.
|
protected void |
addPageSetupItem()
Add the 'Page Setup ...' menu item.
|
protected void |
addPrintItem()
Add the 'Print ...' menu item.
|
protected void |
addSaveAllItem()
Add the 'Save All' menu item.
|
protected void |
addSaveAsItem()
Add the 'Save As ...' menu item.
|
protected void |
addSaveItem()
Add the 'Save' menu item.
|
protected void |
addSaveSettingsItem()
Add the 'Load Settings' menu item.
|
protected void |
addSystemTestItems()
Add menu items to perform any system tests that may be useful during
development.
|
java.awt.Component |
compose()
Compose this by inserting each of its nine menu items into the pulldown
menu.
|
public java.awt.Component compose()
compose in class mvp.Viewprotected void addNewItem()
JMenu.add(new JMenuItem("Item name")).addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
Model.method()
protected void addOpenItem()
protected void addCloseItem()
protected void addCloseAllItem()
protected void addSaveItem()
protected void addSaveAsItem()
protected void addSaveAllItem()
protected void addLoadSettingsItem()
protected void addSaveSettingsItem()
protected void addPageSetupItem()
protected void addPrintItem()
protected void addExitItem()
protected void addSystemTestItems()