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(java.awt.Component parent,
ArchetypeChooserControl<G,A,R> archetypeChooserControl,
ObjectChooser<G,A,R> objectChooser,
ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
findArchetypes()
Shows the find archetypes dialog.
|
void |
setAction(javax.swing.Action action,
java.lang.String name)
Sets the
Action instance for this editor action. |
public FindArchetypesAction(@NotNull java.awt.Component parent, @NotNull ArchetypeChooserControl<G,A,R> archetypeChooserControl, @NotNull ObjectChooser<G,A,R> objectChooser, @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 javax.swing.Action action, @NotNull java.lang.String name)
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the action