Package net.sf.gridarta.gui.mapfiles
Class MapFolderTreeAction<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.mapfiles.MapFolderTreeAction<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.AbstractActionAn action for the entry in the pickmaps folder menu. If invoked, it sets the active folder.- See Also:
- Serialized Form
-
-
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 voidactionPerformed(@NotNull java.awt.event.ActionEvent e)protected @NotNull MapFolderTreeAction<G,A,R>clone()booleanequals(@Nullable java.lang.Object obj)inthashCode()-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
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 themapFolderis part ofmapFolder- the folder to activatemenuItem- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
@NotNull protected @NotNull MapFolderTreeAction<G,A,R> clone()
- Overrides:
clonein classjavax.swing.AbstractAction
-
-