public abstract class Option
extends java.lang.Object
OptionListeners
.Modifier and Type | Field and Description |
---|---|
private EventListenerList2<OptionListener> |
listeners
The listeners to be notified.
|
Constructor and Description |
---|
Option() |
Modifier and Type | Method and Description |
---|---|
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.
|
@NotNull private final EventListenerList2<OptionListener> listeners
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