public class FindArchetypesAction<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 find archetypes dialog.Constructor and Description |
---|
FindArchetypesAction(@NotNull java.awt.Component parent,
@NotNull ArchetypeChooserControl<G,A,R> archetypeChooserControl,
@NotNull ObjectChooser<G,A,R> objectChooser,
@NotNull ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
findArchetypes()
Shows the find archetypes dialog.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
public FindArchetypesAction(@NotNull @NotNull java.awt.Component parent, @NotNull @NotNull ArchetypeChooserControl<G,A,R> archetypeChooserControl, @NotNull @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)
parent
- the parent component for the dialogarchetypeChooserControl
- the archetype chooser control to searchobjectChooser
- the object chooser to use when selecting search
resultsarchetypeTypeSet
- the archetype type set for looking up archetype
types@ActionMethod public void findArchetypes()
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)
EditorAction
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the action