public class WindowAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends javax.swing.AbstractAction
| Constructor and Description |
|---|
WindowAction(@NotNull MapDesktop<G,A,R> mapDesktop,
@NotNull MapView<G,A,R> mapView,
@NotNull MapManager<G,A,R> mapManager)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(@NotNull java.awt.event.ActionEvent e) |
@NotNull WindowAction<G,A,R> |
clone() |
void |
setIndex(int index)
Sets the index of this action so this Action knows what Mnemonic and
Accelerator to use.
|
public WindowAction(@NotNull
@NotNull MapDesktop<G,A,R> mapDesktop,
@NotNull
@NotNull MapView<G,A,R> mapView,
@NotNull
@NotNull MapManager<G,A,R> mapManager)
mapDesktop - the main viewmapView - the associated map viewmapManager - the map manager to usepublic final void setIndex(int index)
index - index (with 1 for first entry)public void actionPerformed(@NotNull
@NotNull java.awt.event.ActionEvent e)
@NotNull public @NotNull WindowAction<G,A,R> clone()
clone in class javax.swing.AbstractAction