Crossfire JXClient, Trunk
R20561
|
The base class for all options. More...
Public Member Functions | |
void | addOptionListener (@NotNull final OptionListener listener) |
Adds a listener for state changes. More... | |
boolean | inhibitSave () |
Returns whether the option should not be saved. More... | |
void | removeOptionListener (@NotNull final OptionListener listener) |
Removes a listener for state changes. More... | |
Protected Member Functions | |
void | fireStateChangedEvent () |
Notifies all listeners that the state has changed. More... | |
Private Attributes | |
final EventListenerList2< OptionListener > | listeners = new EventListenerList2<>() |
The listeners to be notified. More... | |
The base class for all options.
It manages a set of OptionListeners.
Definition at line 32 of file Option.java.
void com.realtime.crossfire.jxclient.settings.options.Option.addOptionListener | ( | @NotNull final OptionListener | listener | ) |
Adds a listener for state changes.
listener | the listener to add |
Definition at line 53 of file Option.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.add().
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.GUICheckBox().
|
protected |
Notifies all listeners that the state has changed.
Definition at line 43 of file Option.java.
boolean com.realtime.crossfire.jxclient.settings.options.Option.inhibitSave | ( | ) |
Returns whether the option should not be saved.
This function can be overridden for options that are otherwise saved, or for options that should not be saved at all.
Definition at line 71 of file Option.java.
Referenced by com.realtime.crossfire.jxclient.settings.options.OptionManager.saveOptions().
void com.realtime.crossfire.jxclient.settings.options.Option.removeOptionListener | ( | @NotNull final OptionListener | listener | ) |
Removes a listener for state changes.
listener | the listener to remove |
Definition at line 61 of file Option.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.remove().
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.dispose().
|
private |
The listeners to be notified.
Definition at line 38 of file Option.java.