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

Action class for selecting this window. More...

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

Public Member Functions

void actionPerformed (@NotNull final ActionEvent e)
 
Object clone ()
 
final void setIndex (final int index)
 Set the index of this action so this Action knows what Mnemonic and Accelerator to use. More...
 
 WindowAction (@NotNull final MapDesktop< G, A, R > mapDesktop, @NotNull final MapView< G, A, R > mapView, @NotNull final MapManager< G, A, R > mapManager)
 Create a new instance. More...
 

Private Member Functions

void updateName ()
 Updates the action's name to the current map state. More...
 

Private Attributes

int index = -1
 The index of this action. More...
 
final MapDesktop< G, A, R > mapDesktop
 The map desktop. More...
 
final MapManager< G, A, R > mapManager
 The MapManager to use. More...
 
final MapManagerListener< G, A, R > mapManagerListener
 The MapManagerListener to detect closed maps. More...
 
final MapModelListener< G, A, R > mapModelListener
 The MapModelListener to detect modified maps. More...
 
final MapView< G, A, R > mapView
 The associated map view. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

Action class for selecting this window.

Author
Andreas Kirschbaum

Definition at line 45 of file WindowAction.java.

Constructor & Destructor Documentation

◆ WindowAction()

Member Function Documentation

◆ actionPerformed()

void net.sf.gridarta.gui.mapdesktop.WindowAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.actionPerformed ( @NotNull final ActionEvent  e)

◆ clone()

Object net.sf.gridarta.gui.mapdesktop.WindowAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.clone ( )

Definition at line 194 of file WindowAction.java.

◆ setIndex()

◆ updateName()

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

Member Data Documentation

◆ index

◆ mapDesktop

◆ mapManager

◆ mapManagerListener

final MapManagerListener<G, A, R> net.sf.gridarta.gui.mapdesktop.WindowAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapManagerListener
private
Initial value:
= new MapManagerListener<G, A, R>() {
@Override
public void currentMapChanged(@Nullable final MapControl<G, A, R> mapControl) {
}
@Override
public void mapCreated(@NotNull final MapControl<G, A, R> mapControl, final boolean interactive) {
}
@Override
public void mapClosing(@NotNull final MapControl<G, A, R> mapControl) {
}
@Override
public void mapClosed(@NotNull final MapControl<G, A, R> mapControl) {
if (mapControl == mapView.getMapControl()) {
}
}
}

The MapManagerListener to detect closed maps.

Definition at line 78 of file WindowAction.java.

◆ mapModelListener

final MapModelListener<G, A, R> net.sf.gridarta.gui.mapdesktop.WindowAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapModelListener
private

The MapModelListener to detect modified maps.

Definition at line 108 of file WindowAction.java.

◆ mapView

◆ serialVersionUID

final long net.sf.gridarta.gui.mapdesktop.WindowAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 50 of file WindowAction.java.


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