java.lang.Object com.realtime.crossfire.jxclient.settings.options.Option
public abstract class Option
The base class for all options. It manages a set of OptionListener
s.
Field Summary | |
---|---|
private javax.swing.event.EventListenerList |
listeners
The listeners to be notified. |
Constructor Summary | |
---|---|
Option()
|
Method Summary | |
---|---|
void |
addOptionListener(OptionListener listener)
Adds a listener for state changes. |
protected void |
fireStateChangedEvent()
Notifies all listeners that the state has changed. |
boolean |
inhibitSave()
Returns whether the option should not be saved. |
void |
removeOptionListener(OptionListener listener)
Removes a listener for state changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final javax.swing.event.EventListenerList listeners
Constructor Detail |
---|
public Option()
Method Detail |
---|
public void addOptionListener(@NotNull OptionListener listener)
listener
- the listener to addprotected void fireStateChangedEvent()
public boolean inhibitSave()
public void removeOptionListener(@NotNull OptionListener listener)
listener
- the listener to remove