public class SoundMusicCheckBoxOption extends CheckBoxOption
CheckBoxOption
that enables/disables background music.Constructor and Description |
---|
SoundMusicCheckBoxOption(@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 SoundMusicCheckBoxOption(@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