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 aRangeOptionin order to enable values to be both seen and changed.
-
-
Constructor Summary
Constructors Constructor Description RangeOptionUI(RangeOption option, boolean editable)Creates a newRangeOptionUIfor the givenRangeOption.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()Reset the value of the UI's component from the Option.voidupdateOption()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 newRangeOptionUIfor the givenRangeOption.- Parameters:
option- TheRangeOptionto 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:
updateOptionin interfaceOptionUpdater- Overrides:
updateOptionin classSliderOptionUI<RangeOption>
-
reset
public void reset()
Reset the value of the UI's component from the Option.- Specified by:
resetin interfaceOptionUpdater- Overrides:
resetin classSliderOptionUI<RangeOption>
-
-