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
EditorAction that displays the browse archetypes dialog.| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
browseArchetypes()
Shows the browse archetypes dialog.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
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)
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@ActionMethod public void browseArchetypes()
public void setAction(@NotNull
@NotNull javax.swing.Action action,
@NotNull
@NotNull java.lang.String name)
EditorActionAction instance for this editor action.setAction in interface EditorActionaction - the action instancename - the name of the action