Package net.sf.freecol.client.gui.option
Class PercentageOptionUI
- java.lang.Object
-
- net.sf.freecol.client.gui.option.OptionUI<T>
-
- net.sf.freecol.client.gui.option.SliderOptionUI<PercentageOption>
-
- net.sf.freecol.client.gui.option.PercentageOptionUI
-
- All Implemented Interfaces:
OptionUpdater
public final class PercentageOptionUI extends SliderOptionUI<PercentageOption>
This class provides visualization for aPercentageOption
in order to enable values to be both seen and changed.
-
-
Constructor Summary
Constructors Constructor Description PercentageOptionUI(PercentageOption option, boolean editable)
Creates a newPercentageOptionUI
for the givenPercentageOption
.
-
Method Summary
-
Methods inherited from class net.sf.freecol.client.gui.option.SliderOptionUI
getComponent, getJLabel, reset, updateOption
-
Methods inherited from class net.sf.freecol.client.gui.option.OptionUI
getListCellRenderer, getOption, getOptionUI, initialize, isEditable, setEditable, setEnabler, setLabel, setOption
-
-
-
-
Constructor Detail
-
PercentageOptionUI
public PercentageOptionUI(PercentageOption option, boolean editable)
Creates a newPercentageOptionUI
for the givenPercentageOption
.- Parameters:
option
- ThePercentageOption
to make a user interface for.editable
- boolean whether user can modify the setting
-
-