Class SoundEffectsCheckBoxOption
java.lang.Object
com.realtime.crossfire.jxclient.settings.options.Option
com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
com.realtime.crossfire.jxclient.sound.SoundEffectsCheckBoxOption
A
CheckBoxOption that enables/disables sound effects.-
Constructor Summary
ConstructorsConstructorDescriptionSoundEffectsCheckBoxOption(@NotNull SoundManager soundManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(boolean checked) Executes the action associated with this check box option.booleanReturns the default value ofCheckBoxOption.isChecked().Methods inherited from class com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
fireStateChangedEvent, getTooltipText, isChecked, setChecked, toggleCheckedMethods inherited from class com.realtime.crossfire.jxclient.settings.options.Option
addOptionListener, inhibitSave, removeOptionListener
-
Constructor Details
-
SoundEffectsCheckBoxOption
Creates a new instance.- Parameters:
soundManager- the sound manager instance to affect
-
-
Method Details
-
execute
protected void execute(boolean checked) Description copied from class:CheckBoxOptionExecutes the action associated with this check box option. Must be implemented in subclasses.- Specified by:
executein classCheckBoxOption- Parameters:
checked- whether the checkbox option is checked
-
isDefaultChecked
public boolean isDefaultChecked()Description copied from class:CheckBoxOptionReturns the default value ofCheckBoxOption.isChecked().- Specified by:
isDefaultCheckedin classCheckBoxOption- Returns:
- the default value
-