|
Gridarta Editor
|
Manages the recent menu entries. More...
Collaboration diagram for net.sf.gridarta.gui.mapmenu.MapMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | initRecent () |
| Initializes the recent state. More... | |
| MapMenuManager (@NotNull final MapMenu mapMenu, @NotNull final MapViewsManager<?, ?, ?> mapViewsManager, @NotNull final FileControl<?, ?, ?> fileControl, @NotNull final MapImageCache<?, ?, ?> mapImageCache) | |
| Create a new instance. More... | |
| void | setMenu (@Nullable final JMenu recentMenu) |
| Sets the menu to update. More... | |
Private Member Functions | |
| void | updateMenu (@NotNull final JMenu menu, @NotNull final TreeNode root) |
| Updates a JMenu from a menu instance. More... | |
Private Attributes | |
| final ActionFactory | actionFactory |
| The ActionFactory for creating MapMenuActions. More... | |
| final MapMenu | mapMenu |
| The MapMenu to use. More... | |
| final PopupMenuListener | popupMenuListener |
| The PopupMenuListener for updating recentMenu when it opens. More... | |
| JMenu | recentMenu |
| The menu to update. More... | |
Manages the recent menu entries.
Definition at line 41 of file MapMenuManager.java.
| net.sf.gridarta.gui.mapmenu.MapMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MapMenuManager | ( | @NotNull final MapMenu | mapMenu, |
| @NotNull final MapViewsManager<?, ?, ?> | mapViewsManager, | ||
| @NotNull final FileControl<?, ?, ?> | fileControl, | ||
| @NotNull final MapImageCache<?, ?, ?> | mapImageCache | ||
| ) |
Create a new instance.
| mapMenu | the map menu to use |
| mapViewsManager | the map views manager for opening map files |
| fileControl | the file control for reporting errors |
| mapImageCache | the map image cache to query |
Definition at line 97 of file MapMenuManager.java.
| void net.sf.gridarta.gui.mapmenu.MapMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.initRecent | ( | ) |
Initializes the recent state.
Definition at line 119 of file MapMenuManager.java.
References net.sf.gridarta.gui.mapmenu.MapMenu.load().
Here is the call graph for this function:| void net.sf.gridarta.gui.mapmenu.MapMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setMenu | ( | @Nullable final JMenu | recentMenu | ) |
Sets the menu to update.
| recentMenu | the menu or null |
Definition at line 106 of file MapMenuManager.java.
|
private |
Updates a JMenu from a menu instance.
| menu | the menu to update |
| root | the menu instance to update from |
Definition at line 128 of file MapMenuManager.java.
References net.sf.gridarta.gui.mapmenu.ActionFactory.begin(), net.sf.gridarta.gui.mapmenu.ActionFactory.end(), net.sf.gridarta.gui.mapmenu.ActionFactory.getAction(), and net.sf.gridarta.gui.utils.MenuUtils.removeAllFromSeparator().
Here is the call graph for this function:
|
private |
The ActionFactory for creating MapMenuActions.
Definition at line 61 of file MapMenuManager.java.
|
private |
The MapMenu to use.
Definition at line 54 of file MapMenuManager.java.
|
private |
The PopupMenuListener for updating recentMenu when it opens.
Definition at line 68 of file MapMenuManager.java.
|
private |
The menu to update.
Definition at line 48 of file MapMenuManager.java.