public class MapParameterView<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements PluginParameterView
PluginParameterView for a MapParameter.| Constructor and Description |
|---|
MapParameterView(@NotNull MapParameter<G,A,R> parameter,
@NotNull MapManager<G,A,R> mapManager)
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 MapParameterView(@NotNull
@NotNull MapParameter<G,A,R> parameter,
@NotNull
@NotNull MapManager<G,A,R> mapManager)
parameter - the map parameter that is shownmapManager - the map manager for selecting maps@NotNull public @NotNull javax.swing.JComponent getValueComponent()
PluginParameterViewJComponent 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@NotNull public @NotNull javax.swing.JComponent getConfigComponent()
PluginParameterViewJComponent for editing the parameter configuration. It
is used only in the "edit plugin" dialog.getConfigComponent in interface PluginParameterView