public class BooleanParameter extends Parameter<java.lang.Boolean>
Parameter
,
leaving only construction and type definition to the
subclasses.
BooleanMonitor
for an example
of this usage.
valueProperty
Constructor and Description |
---|
BooleanParameter(boolean value,
java.lang.String name)
Creates a new instance of this class, assuming the parameter
is not critical.
|
BooleanParameter(boolean value,
java.lang.String name,
boolean critical)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
get() |
void |
validate(java.lang.Boolean 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 BooleanParameter(boolean value, java.lang.String name)
value
- the initial value for this parameter.name
- the name of this parameter, for GUI display.public BooleanParameter(boolean 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.Boolean get()
public void validate(java.lang.Boolean 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.