Package net.sf.freecol.client.gui.option
Class RangeOptionUI
- java.lang.Object
-
- net.sf.freecol.client.gui.option.OptionUI<T>
-
- net.sf.freecol.client.gui.option.SliderOptionUI<RangeOption>
-
- net.sf.freecol.client.gui.option.RangeOptionUI
-
- All Implemented Interfaces:
OptionUpdater
public final class RangeOptionUI extends SliderOptionUI<RangeOption>
This class provides visualization for aRangeOption
in order to enable values to be both seen and changed.
-
-
Constructor Summary
Constructors Constructor Description RangeOptionUI(RangeOption option, boolean editable)
Creates a newRangeOptionUI
for the givenRangeOption
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reset()
Reset the value of the UI's component from the Option.void
updateOption()
Update the value of the Option from the UI's component.-
Methods inherited from class net.sf.freecol.client.gui.option.SliderOptionUI
getComponent, getJLabel
-
Methods inherited from class net.sf.freecol.client.gui.option.OptionUI
getListCellRenderer, getOption, getOptionUI, initialize, isEditable, setEditable, setEnabler, setLabel, setOption
-
-
-
-
Constructor Detail
-
RangeOptionUI
public RangeOptionUI(RangeOption option, boolean editable)
Creates a newRangeOptionUI
for the givenRangeOption
.- Parameters:
option
- TheRangeOption
to make a user interface foreditable
- boolean whether user can modify the setting
-
-
Method Detail
-
updateOption
public void updateOption()
Update the value of the Option from the UI's component.- Specified by:
updateOption
in interfaceOptionUpdater
- Overrides:
updateOption
in classSliderOptionUI<RangeOption>
-
reset
public void reset()
Reset the value of the UI's component from the Option.- Specified by:
reset
in interfaceOptionUpdater
- Overrides:
reset
in classSliderOptionUI<RangeOption>
-
-