net.sf.freecol.client.gui.option
Class PercentageOptionUI

java.lang.Object
  extended by net.sf.freecol.client.gui.option.OptionUI<T>
      extended by net.sf.freecol.client.gui.option.SliderOptionUI<PercentageOption>
          extended by net.sf.freecol.client.gui.option.PercentageOptionUI
All Implemented Interfaces:
OptionUpdater

public final class PercentageOptionUI
extends SliderOptionUI<PercentageOption>

This class provides visualization for an PercentageOption. In order to enable values to be both seen and changed.


Field Summary
 
Fields inherited from class net.sf.freecol.client.gui.option.OptionUI
gui
 
Constructor Summary
PercentageOptionUI(GUI gui, PercentageOption option, boolean editable)
          Creates a new PercentageOptionUI for the given PercentageOption.
 
Method Summary
 
Methods inherited from class net.sf.freecol.client.gui.option.SliderOptionUI
getComponent, getLabel, reset, updateOption
 
Methods inherited from class net.sf.freecol.client.gui.option.OptionUI
getListCellRenderer, getOption, getOptionUI, initialize, isEditable, setEditable, setLabel, setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentageOptionUI

public PercentageOptionUI(GUI gui,
                          PercentageOption option,
                          boolean editable)
Creates a new PercentageOptionUI for the given PercentageOption.

Parameters:
option - The PercentageOption to make a user interface for
editable - boolean whether user can modify the setting