net.sf.freecol.client.gui.option
Interface OptionUpdater

All Known Implementing Classes:
AudioMixerOptionUI, BooleanOptionUI, FileOptionUI, FreeColActionUI, IntegerOptionUI, LanguageOptionUI, ListOptionUI, OptionGroupUI, OptionMapUI, PercentageOptionUI, RangeOptionUI, SelectOptionUI

public interface OptionUpdater

Interface for classes which temporarily stores changes for an Option. Calling updateOption() should update the Option with that new information.


Method Summary
 void reset()
          Reset with the value from the option.
 void rollback()
          Rollback to the original value.
 void unregister()
          Unregister PropertyChangeListeners.
 void updateOption()
          Updates the value of the Option this object keeps.
 

Method Detail

updateOption

void updateOption()
Updates the value of the Option this object keeps.


reset

void reset()
Reset with the value from the option.


unregister

void unregister()
Unregister PropertyChangeListeners.


rollback

void rollback()
Rollback to the original value. This method gets called so that changes made to options with Option.isPreviewEnabled() is rolled back when an option dialoag has been cancelled.