Class 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.AbstractAction
    An AbstractAction for a MapMenuEntryMap instance.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(@NotNull java.awt.event.ActionEvent e)  
      @NotNull MapMenuAction clone()  
      void update​(@NotNull MapImageCache<?,​?,​?> mapImageCache)
      Updates properties.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • 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 action
        mapViewsManager - the map views manager for opening map files
        fileControl - 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:
        clone in class javax.swing.AbstractAction
        Throws:
        java.lang.CloneNotSupportedException