public abstract class CheckBoxOption extends Option
Modifier | Constructor and Description |
---|---|
protected |
CheckBoxOption(@NotNull java.lang.String tooltipText)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
execute(boolean checked)
Executes the action associated with this check box option.
|
protected void |
fireStateChangedEvent()
Notifies all listeners that the state has changed.
|
@NotNull java.lang.String |
getTooltipText()
Returns the tooltip text to explain this option.
|
boolean |
isChecked()
Returns the current state.
|
abstract boolean |
isDefaultChecked()
Returns the default value of
isChecked() . |
void |
setChecked(boolean checked)
Sets the current state.
|
void |
toggleChecked()
Toggles the checked state.
|
addOptionListener, inhibitSave, removeOptionListener
protected CheckBoxOption(@NotNull @NotNull java.lang.String tooltipText)
tooltipText
- the tooltip text to explain this optionpublic boolean isChecked()
public void setChecked(boolean checked)
checked
- the new statepublic void toggleChecked()
protected abstract void execute(boolean checked)
checked
- whether the checkbox option is checkedprotected void fireStateChangedEvent()
Option
fireStateChangedEvent
in class Option
public abstract boolean isDefaultChecked()
isChecked()
.@NotNull public @NotNull java.lang.String getTooltipText()