Class BooleanOption
java.lang.Object
edu.wisc.ssec.mcidasv.startupmanager.options.AbstractOption
edu.wisc.ssec.mcidasv.startupmanager.options.BooleanOption
- All Implemented Interfaces:
Option
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBooleanOption
(String id, String label, String defaultValue, OptionMaster.OptionPlatform optionPlatform, OptionMaster.Visibility optionVisibility) -
Method Summary
Methods inherited from class edu.wisc.ssec.mcidasv.startupmanager.options.AbstractOption
fromPrefsFormat, getLabel, getOptionId, getOptionPlatform, getOptionType, getOptionVisibility, isValidPrefFormat, onValidPlatform, toPrefsFormat
-
Field Details
-
value
-
-
Constructor Details
-
BooleanOption
public BooleanOption(String id, String label, String defaultValue, OptionMaster.OptionPlatform optionPlatform, OptionMaster.Visibility optionVisibility)
-
-
Method Details
-
getComponent
Description copied from class:AbstractOption
Returns the GUI component that represents the option.BooleanOptions
are represented by aJCheckBox
, whileTextOptions
appear as aJTextField
.- Specified by:
getComponent
in interfaceOption
- Specified by:
getComponent
in classAbstractOption
- Returns:
- The GUI representation of this option.
-
getValue
Description copied from class:AbstractOption
Returns the value of the option. Note thatBooleanOptions
return either "0" or "1".- Specified by:
getValue
in interfaceOption
- Specified by:
getValue
in classAbstractOption
- Returns:
- The current value of the option.
-
setValue
Description copied from class:AbstractOption
Forces the value of the option to the data specified. Note thatBooleanOptions
accept either "0", or "1".- Specified by:
setValue
in interfaceOption
- Specified by:
setValue
in classAbstractOption
- Parameters:
newValue
- New value to use.
-
toString
Description copied from class:AbstractOption
Friendly string representation of the option.- Specified by:
toString
in interfaceOption
- Specified by:
toString
in classAbstractOption
- Returns:
String
containing relevant info about the option.- See Also:
-