Package net.sf.gridarta.gui.mapmenu
Class MapMenuAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- net.sf.gridarta.gui.mapmenu.MapMenuAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class MapMenuAction extends javax.swing.AbstractActionAnAbstractActionfor aMapMenuEntryMapinstance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapMenuAction(@NotNull MapMenuEntryMap mapMenuEntryMap, @NotNull MapViewsManager<?,?,?> mapViewsManager, @NotNull FileControl<?,?,?> fileControl)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 MapMenuActionclone()voidupdate(@NotNull MapImageCache<?,?,?> mapImageCache)Updates properties.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
MapMenuAction
public MapMenuAction(@NotNull @NotNull MapMenuEntryMap mapMenuEntryMap, @NotNull @NotNull MapViewsManager<?,?,?> mapViewsManager, @NotNull @NotNull FileControl<?,?,?> fileControl)Creates a new instance.- Parameters:
mapMenuEntryMap- the map menu entry for this actionmapViewsManager- the map views manager for opening map filesfileControl- the file control for reporting errors
-
-
Method Detail
-
actionPerformed
public void actionPerformed(@NotNull @NotNull java.awt.event.ActionEvent e)
-
update
public void update(@NotNull @NotNull MapImageCache<?,?,?> mapImageCache)Updates properties.- Parameters:
mapImageCache- the map image cache to query
-
clone
@NotNull public @NotNull MapMenuAction clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjavax.swing.AbstractAction- Throws:
java.lang.CloneNotSupportedException
-
-