public abstract class Option
extends java.lang.Object
OptionListeners
.Constructor and Description |
---|
Option() |
Modifier and Type | Method and Description |
---|---|
void |
addOptionListener(@NotNull 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(@NotNull OptionListener listener)
Removes a listener for state changes.
|
protected void fireStateChangedEvent()
public void addOptionListener(@NotNull @NotNull OptionListener listener)
listener
- the listener to addpublic void removeOptionListener(@NotNull @NotNull OptionListener listener)
listener
- the listener to removepublic boolean inhibitSave()