Class SliderOption
java.lang.Object
edu.wisc.ssec.mcidasv.startupmanager.options.AbstractOption
edu.wisc.ssec.mcidasv.startupmanager.options.SliderOption
- All Implemented Interfaces:
Option
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSliderOption(String id, String label, String defaultValue, OptionMaster.OptionPlatform optionPlatform, OptionMaster.Visibility optionVisibility) -
Method Summary
Modifier and TypeMethodDescriptionReturns the GUI component that represents the option.getValue()Returns the value of the option.private ChangeListenermakeChangeListener(JLabel sliderLabel) voidForces the value of the option to the data specified.toString()Friendly string representation of the option.Methods inherited from class edu.wisc.ssec.mcidasv.startupmanager.options.AbstractOption
fromPrefsFormat, getLabel, getOptionId, getOptionPlatform, getOptionType, getOptionVisibility, isValidPrefFormat, onValidPlatform, toPrefsFormat
-
Field Details
-
minValue
- See Also:
-
maxValue
- See Also:
-
total
-
sliderValue
-
-
Constructor Details
-
SliderOption
public SliderOption(String id, String label, String defaultValue, OptionMaster.OptionPlatform optionPlatform, OptionMaster.Visibility optionVisibility)
-
-
Method Details
-
makeChangeListener
-
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:
-