public class ArchetypeParameterView<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements PluginParameterView
PluginParameterView
for an ArchetypeParameter
.Constructor and Description |
---|
ArchetypeParameterView(@NotNull ArchetypeParameter<G,A,R> parameter,
@NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel,
@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull ObjectChooser<G,A,R> objectChooser,
@NotNull FaceObjectProviders faceObjectProviders)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull javax.swing.JComponent |
getConfigComponent()
Returns a
JComponent for editing the parameter configuration. |
@NotNull javax.swing.JComponent |
getValueComponent()
Returns a
JComponent for editing the parameter value. |
public ArchetypeParameterView(@NotNull @NotNull ArchetypeParameter<G,A,R> parameter, @NotNull @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel, @NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull @NotNull FaceObjectProviders faceObjectProviders)
parameter
- the archetype parameter that is showngameObjectAttributesModel
- the game object attributes model for
selecting archetypes from opened mapsarchetypeSet
- the archetype from which archetypes can be chosenobjectChooser
- the object chooser for selecting archetypes from
opened mapsfaceObjectProviders
- the face object providers for looking up
faces@NotNull public @NotNull javax.swing.JComponent getConfigComponent()
PluginParameterView
JComponent
for editing the parameter configuration. It
is used only in the "edit plugin" dialog.getConfigComponent
in interface PluginParameterView
@NotNull public @NotNull javax.swing.JComponent getValueComponent()
PluginParameterView
JComponent
for editing the parameter value. In the "run
plugin" dialog this is the parameter's value, in the "edit plugin" dialog
it is the default value.getValueComponent
in interface PluginParameterView