|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.et.gui.MenuFactory
public class MenuFactory
A class to create various menus such as file menu, edit
menu, tool menu, option menu, view menu, and help menu.
This class also creates popup menus for several GUI components,
such as the explorer pane. To create various menu items, this
class uses the class ActionFactory.
| Nested Class Summary | |
|---|---|
private static class |
MenuFactory.AboutViewer
The dialog window that displays the tool's version number and copyright notice. |
private static class |
MenuFactory.CheckableMenuItem
A special menu item class that displays an icon (check mark) if the pane corresponding to the menu item is currently visible. |
private static class |
MenuFactory.HelpViewer
A frame class to display the project website. |
private static interface |
MenuFactory.Hideable
An interface to the display panes that can be made visible and invisible. |
private static class |
MenuFactory.LinkListener
A class allowing for the help viewer to load the tool's web page. |
| Field Summary | |
|---|---|
private ActionFactory |
factory
The action factory to create various menu item actions. |
private static OptionDialog |
optionDialog
The option dialog used by the option menu. |
| Constructor Summary | |
|---|---|
MenuFactory(ActionFactory factory)
Creates a new instance that creates various menus by using the given action factory. |
|
| Method Summary | |
|---|---|
JMenu |
createEditMenu(Editor editor)
Creates the edit menu. |
JPopupMenu |
createExplorerPopupMenu()
Creates the popup menu for the directory browser. |
JMenu |
createFileMenu()
Creates the file menu. |
JMenu |
createHelpMenu()
Creates the help menu. |
JMenu |
createOptionMenu(Main tool,
OptionPanel editor,
OptionPanel tester)
Creates the option menu. |
JMenu |
createToolMenu()
Creates the tool menu. |
JMenu |
createViewMenu(ViewController vc)
Creates the view menu. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ActionFactory factory
private static OptionDialog optionDialog
| Constructor Detail |
|---|
public MenuFactory(ActionFactory factory)
| Method Detail |
|---|
public JMenu createFileMenu()
public JMenu createEditMenu(Editor editor)
public JMenu createToolMenu()
public JMenu createViewMenu(ViewController vc)
public JMenu createOptionMenu(Main tool,
OptionPanel editor,
OptionPanel tester)
public JMenu createHelpMenu()
public JPopupMenu createExplorerPopupMenu()
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||