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 int
private final int
private int
private 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 ChangeListener
makeChangeListener
(JLabel sliderLabel) void
Forces 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: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:
-