Package net.sf.gridarta.gui.mapdesktop
Class WindowAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- javax.swing.AbstractAction
-
- net.sf.gridarta.gui.mapdesktop.WindowAction<G,A,R>
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class WindowAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends javax.swing.AbstractActionAction class for selecting this window.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WindowAction(@NotNull MapDesktop<G,A,R> mapDesktop, @NotNull MapView<G,A,R> mapView, @NotNull MapManager<G,A,R> mapManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(@NotNull java.awt.event.ActionEvent e)@NotNull WindowAction<G,A,R>clone()voidsetIndex(int index)Sets the index of this action so this Action knows what Mnemonic and Accelerator to use.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
WindowAction
public WindowAction(@NotNull @NotNull MapDesktop<G,A,R> mapDesktop, @NotNull @NotNull MapView<G,A,R> mapView, @NotNull @NotNull MapManager<G,A,R> mapManager)Creates a new instance.- Parameters:
mapDesktop- the main viewmapView- the associated map viewmapManager- the map manager to use
-
-
Method Detail
-
setIndex
public final void setIndex(int index)
Sets the index of this action so this Action knows what Mnemonic and Accelerator to use.- Parameters:
index- index (with 1 for first entry)
-
actionPerformed
public void actionPerformed(@NotNull @NotNull java.awt.event.ActionEvent e)
-
clone
@NotNull public @NotNull WindowAction<G,A,R> clone()
- Overrides:
clonein classjavax.swing.AbstractAction
-
-