Class SoundCheckBoxOption
- java.lang.Object
-
- com.realtime.crossfire.jxclient.settings.options.Option
-
- com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
-
- com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption
-
public class SoundCheckBoxOption extends CheckBoxOption
ACheckBoxOption
that enables/disables sound support.
-
-
Constructor Summary
Constructors Constructor Description SoundCheckBoxOption(@NotNull SoundManager soundManager)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(boolean checked)
Executes the action associated with this check box option.boolean
isDefaultChecked()
Returns the default value ofCheckBoxOption.isChecked()
.-
Methods inherited from class com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
fireStateChangedEvent, getTooltipText, isChecked, setChecked, toggleChecked
-
Methods inherited from class com.realtime.crossfire.jxclient.settings.options.Option
addOptionListener, inhibitSave, removeOptionListener
-
-
-
-
Constructor Detail
-
SoundCheckBoxOption
public SoundCheckBoxOption(@NotNull @NotNull SoundManager soundManager)
Creates a new instance.- Parameters:
soundManager
- the sound manager instance to affect
-
-
Method Detail
-
execute
protected void execute(boolean checked)
Description copied from class:CheckBoxOption
Executes the action associated with this check box option. Must be implemented in sub-classes.- Specified by:
execute
in classCheckBoxOption
- Parameters:
checked
- whether the check box option is checked
-
isDefaultChecked
public boolean isDefaultChecked()
Description copied from class:CheckBoxOption
Returns the default value ofCheckBoxOption.isChecked()
.- Specified by:
isDefaultChecked
in classCheckBoxOption
- Returns:
- the default value
-
-