Class MapFolderTreeAction<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class MapFolderTreeAction<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends javax.swing.AbstractAction
    An action for the entry in the pickmaps folder menu. If invoked, it sets the active folder.
    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
    • Constructor Summary

      Constructors 
      Constructor Description
      MapFolderTreeAction​(@NotNull MapFolderTree<G,​A,​R> mapFolderTree, @NotNull MapFolder<G,​A,​R> mapFolder, @NotNull javax.swing.AbstractButton menuItem)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(@NotNull java.awt.event.ActionEvent e)  
      protected @NotNull MapFolderTreeAction<G,​A,​R> clone()  
      boolean equals​(@Nullable java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class javax.swing.AbstractAction

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

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

        accept
    • Constructor Detail

      • MapFolderTreeAction

        public MapFolderTreeAction​(@NotNull
                                   @NotNull MapFolderTree<G,​A,​R> mapFolderTree,
                                   @NotNull
                                   @NotNull MapFolder<G,​A,​R> mapFolder,
                                   @NotNull
                                   @NotNull javax.swing.AbstractButton menuItem)
        Creates a new instance.
        Parameters:
        mapFolderTree - the model the mapFolder is part of
        mapFolder - the folder to activate
        menuItem - the associated menu item
    • Method Detail

      • actionPerformed

        public void actionPerformed​(@NotNull
                                    @NotNull java.awt.event.ActionEvent e)
      • equals

        public boolean equals​(@Nullable
                              @Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • clone

        @NotNull
        protected @NotNull MapFolderTreeAction<G,​A,​R> clone()
        Overrides:
        clone in class javax.swing.AbstractAction