|
Gridarta Editor
|
Utility class implementing menu related functions. More...
Collaboration diagram for net.sf.gridarta.gui.utils.MenuUtils:Static Public Member Functions | |
| static void | disposeMenuElement (@NotNull final MenuElement menuElement) |
| Remove all actions attached to menu entries in a given menu element and its children. More... | |
| static JMenu | findMenu (@NotNull final MenuElement menuElement, @NotNull final String key) |
| Returns a JMenu by action key. More... | |
| static JMenu | getMenu (@NotNull final JMenuBar menuBar, @NotNull final String name) |
| Returns a named JMenu entry of a JMenuBar. More... | |
| static void | removeAll (@NotNull final JMenu menu) |
| Remove all menu entries. More... | |
| static void | removeAllFromSeparator (@NotNull final JMenu menu) |
| Remove all menu entries from (but not including) the last separator. More... | |
| static void | removeAllToSeparator (@NotNull final JMenu menu) |
| Remove all menu entries up to (but not including) the first separator. More... | |
Private Member Functions | |
| MenuUtils () | |
| Private constructor to prevent instantiation. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| The ActionBuilder. More... | |
Utility class implementing menu related functions.
Definition at line 39 of file MenuUtils.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 50 of file MenuUtils.java.
|
static |
Remove all actions attached to menu entries in a given menu element and its children.
| menuElement | the menu element to process |
Definition at line 58 of file MenuUtils.java.
Referenced by net.sf.gridarta.gui.map.mapview.DefaultMapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.closeNotify(), net.sf.gridarta.gui.utils.MenuUtils.removeAll(), net.sf.gridarta.gui.utils.MenuUtils.removeAllFromSeparator(), and net.sf.gridarta.gui.utils.MenuUtils.removeAllToSeparator().
Here is the caller graph for this function:
|
static |
Returns a JMenu by action key.
| menuElement | the menu element to search for the action key |
| key | the action key to search |
Definition at line 136 of file MenuUtils.java.
References net.sf.gridarta.utils.ActionUtils.getActionId().
Referenced by net.sf.gridarta.gui.utils.tabbedpanel.Tab.Tab().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns a named JMenu entry of a JMenuBar.
| menuBar | the menu bar |
| name | the name |
Definition at line 124 of file MenuUtils.java.
Here is the caller graph for this function:
|
static |
Remove all menu entries.
| menu | the menu to remove the entries from |
Definition at line 72 of file MenuUtils.java.
References net.sf.gridarta.gui.utils.MenuUtils.disposeMenuElement().
Referenced by net.sf.gridarta.gui.utils.tabbedpanel.TabbedPanel.fillContextMenu(), net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.rebuildWindowMenu(), and net.sf.gridarta.gui.mapfiles.MapFolderTreeActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refresh().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove all menu entries from (but not including) the last separator.
| menu | the menu to remove the entries from |
Definition at line 100 of file MenuUtils.java.
References net.sf.gridarta.gui.utils.MenuUtils.disposeMenuElement().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove all menu entries up to (but not including) the first separator.
| menu | the menu to remove the entries from |
Definition at line 83 of file MenuUtils.java.
References net.sf.gridarta.gui.utils.MenuUtils.disposeMenuElement().
Referenced by net.sf.gridarta.gui.dialog.plugin.PluginView< G, A, R >.updateMenuEntries().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
The ActionBuilder.
Definition at line 45 of file MenuUtils.java.