public class IntegerParameterView<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 IntegerParameter
.Constructor and Description |
---|
IntegerParameterView(@NotNull java.awt.Component parent,
@NotNull IntegerParameter<G,A,R> parameter)
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 IntegerParameterView(@NotNull @NotNull java.awt.Component parent, @NotNull @NotNull IntegerParameter<G,A,R> parameter)
parent
- the parent dialog for config dialogsparameter
- the integer parameter that is shown@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