public class SoundEffectsCheckBoxOption extends CheckBoxOption
CheckBoxOption
that enables/disables sound effects.Constructor and Description |
---|
SoundEffectsCheckBoxOption(@NotNull SoundManager soundManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(boolean checked)
Executes the action associated with this check box option.
|
boolean |
isDefaultChecked()
Returns the default value of
CheckBoxOption.isChecked() . |
fireStateChangedEvent, getTooltipText, isChecked, setChecked, toggleChecked
addOptionListener, inhibitSave, removeOptionListener
public SoundEffectsCheckBoxOption(@NotNull @NotNull SoundManager soundManager)
soundManager
- the sound manager instance to affectprotected void execute(boolean checked)
CheckBoxOption
execute
in class CheckBoxOption
checked
- whether the checkbox option is checkedpublic boolean isDefaultChecked()
CheckBoxOption
CheckBoxOption.isChecked()
.isDefaultChecked
in class CheckBoxOption