Package net.sf.gridarta.action
Class BrowseArchetypesAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.action.BrowseArchetypesAction<G,A,R>
-
- All Implemented Interfaces:
EditorAction
public class BrowseArchetypesAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
AnEditorActionthat displays the browse archetypes dialog.
-
-
Constructor Summary
Constructors Constructor Description BrowseArchetypesAction(@NotNull java.awt.Component parent, @NotNull ArchetypeChooserControl<G,A,R> archetypeChooserControl, @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull javax.swing.ImageIcon closingIcon)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbrowseArchetypes()Shows the browse archetypes dialog.voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.
-
-
-
Constructor Detail
-
BrowseArchetypesAction
public BrowseArchetypesAction(@NotNull @NotNull java.awt.Component parent, @NotNull @NotNull ArchetypeChooserControl<G,A,R> archetypeChooserControl, @NotNull @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull javax.swing.ImageIcon closingIcon)Creates a new instance.- Parameters:
parent- the parent component for the dialogarchetypeChooserControl- the archetype chooser control to searchobjectChooser- the object chooser to use when selecting search resultsarchetypeSet- the archetype set for looking up archetypesclosingIcon- the icon to display in the closing buttons of the archetype browser
-
-
Method Detail
-
browseArchetypes
@ActionMethod public void browseArchetypes()
Shows the browse archetypes dialog.
-
setAction
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)Description copied from interface:EditorActionSets theActioninstance for this editor action.- Specified by:
setActionin interfaceEditorAction- Parameters:
action- the action instancename- the name of the action
-
-