Gridarta Editor
net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Maintains the window menu. More...

+ Collaboration diagram for net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

 WindowMenuManager (@NotNull final JMenu menuWindow, @NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final Action aCloseAll, @NotNull final MapDesktop< G, A, R > mapDesktop)
 Creates a new instance. More...
 

Private Member Functions

void rebuildWindowMenu ()
 Rebuild the window menu. More...
 

Private Attributes

final Action aCloseAll
 The action for "close all map windows". More...
 
final MapDesktop< G, A, R > mapDesktop
 The MapDesktop to use. More...
 
final Iterable< MapView< G, A, R > > mapViewManager
 The MapViewManager to use. More...
 
final MapViewManagerListener< G, A, R > mapViewManagerListener
 The listener used to detect map view changes. More...
 
final JMenu menuWindow
 The "window" menu. More...
 

Detailed Description

Maintains the window menu.

Tracks added, removed, and modified windows.

Author
Andreas Kirschbaum

Definition at line 38 of file WindowMenuManager.java.

Constructor & Destructor Documentation

◆ WindowMenuManager()

Member Function Documentation

◆ rebuildWindowMenu()

void net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.rebuildWindowMenu ( )
private

Member Data Documentation

◆ aCloseAll

final Action net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aCloseAll
private

◆ mapDesktop

◆ mapViewManager

◆ mapViewManagerListener

final MapViewManagerListener<G, A, R> net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewManagerListener
private
Initial value:
= new MapViewManagerListener<G, A, R>() {
@Override
public void mapViewCreated(@NotNull final MapView<G, A, R> mapView) {
}
@Override
public void mapViewClosing(@NotNull final MapView<G, A, R> mapView) {
}
@Override
public void activeMapViewChanged(@Nullable final MapView<G, A, R> mapView) {
}
}

The listener used to detect map view changes.

Definition at line 68 of file WindowMenuManager.java.

◆ menuWindow


The documentation for this class was generated from the following file: