Class StringParameterView<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.plugin.parameter.StringParameterView<G,A,R>
-
- All Implemented Interfaces:
PluginParameterView
public class StringParameterView<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements PluginParameterView
APluginParameterViewfor aStringParameter.
-
-
Constructor Summary
Constructors Constructor Description StringParameterView(@NotNull StringParameter<G,A,R> parameter)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull javax.swing.JComponentgetConfigComponent()Returns aJComponentfor editing the parameter configuration.@NotNull javax.swing.JComponentgetValueComponent()Returns aJComponentfor editing the parameter value.
-
-
-
Constructor Detail
-
StringParameterView
public StringParameterView(@NotNull @NotNull StringParameter<G,A,R> parameter)Creates a new instance.- Parameters:
parameter- the string parameter that is shown
-
-
Method Detail
-
getConfigComponent
@NotNull public @NotNull javax.swing.JComponent getConfigComponent()
Description copied from interface:PluginParameterViewReturns aJComponentfor editing the parameter configuration. It is used only in the "edit plugin" dialog.- Specified by:
getConfigComponentin interfacePluginParameterView- Returns:
- the component
-
getValueComponent
@NotNull public @NotNull javax.swing.JComponent getValueComponent()
Description copied from interface:PluginParameterViewReturns aJComponentfor 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.- Specified by:
getValueComponentin interfacePluginParameterView- Returns:
- the component
-
-