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:AbstractOptionReturns the GUI component that represents the option.BooleanOptionsare represented by aJCheckBox, whileTextOptionsappear as aJTextField.- Specified by:
getComponentin interfaceOption- Specified by:
getComponentin classAbstractOption- Returns:
- The GUI representation of this option.
-
getValue
Description copied from class:AbstractOptionReturns the value of the option. Note thatBooleanOptionsreturn either "0" or "1".- Specified by:
getValuein interfaceOption- Specified by:
getValuein classAbstractOption- Returns:
- The current value of the option.
-
setValue
Description copied from class:AbstractOptionForces the value of the option to the data specified. Note thatBooleanOptionsaccept either "0", or "1".- Specified by:
setValuein interfaceOption- Specified by:
setValuein classAbstractOption- Parameters:
newValue- New value to use.
-
toString
Description copied from class:AbstractOptionFriendly string representation of the option.- Specified by:
toStringin interfaceOption- Specified by:
toStringin classAbstractOption- Returns:
Stringcontaining relevant info about the option.- See Also:
-