public class IntegerParameter extends Parameter<java.lang.Number>
Parameter
,
leaving only construction and type definition to the
subclasses.
IntegerMonitor
for an example
of this usage.
valueProperty
Constructor and Description |
---|
IntegerParameter(int value,
java.lang.String name)
Creates a new instance of this class, assuming the parameter
is not critical.
|
IntegerParameter(int value,
java.lang.String name,
boolean critical)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
get() |
void |
validate(java.lang.Number newValue)
This is a callback method which gets called whenever changes
to parameters (not only its own instance) are made.
|
getStatus, isCritical, isMonitor, set, toString, valueProperty
public IntegerParameter(int value, java.lang.String name)
value
- the initial value for this parameter.name
- the name of this parameter, for GUI display.public IntegerParameter(int value, java.lang.String name, boolean critical)
value
- the initial value for this parameter.name
- the name of this parameter, for GUI display.critical
- true if the parameter is critical.public java.lang.Integer get()
public void validate(java.lang.Number newValue)
Parameter
status
field according to the
new value, so that the user can be informed if any parameters
are currently set to invalid values.