public class SoundCheckBoxOption extends CheckBoxOption
CheckBoxOption
that enables/disables sound support.Modifier and Type | Field and Description |
---|---|
private SoundManager |
soundManager
The
SoundManager instance to affect. |
Constructor and Description |
---|
SoundCheckBoxOption(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
@NotNull private final SoundManager soundManager
SoundManager
instance to affect.public SoundCheckBoxOption(@NotNull SoundManager soundManager)
soundManager
- the sound manager instance to affectprotected void execute(boolean checked)
execute
in class CheckBoxOption
checked
- whether the check box option is checkedpublic boolean isDefaultChecked()
CheckBoxOption.isChecked()
.isDefaultChecked
in class CheckBoxOption