java.lang.Objectcom.realtime.crossfire.jxclient.settings.options.Option
com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption
public class SoundCheckBoxOption
A CheckBoxOption that enables/disables sound support.
| Field Summary | |
|---|---|
private  SoundManager | 
soundManager
The SoundManager instance to affect. | 
| Constructor Summary | |
|---|---|
SoundCheckBoxOption(SoundManager soundManager)
Creates a new instance.  | 
|
| Method Summary | |
|---|---|
protected  void | 
execute(boolean checked)
Execute the action associated with this check box option.  | 
 boolean | 
isDefaultChecked()
Return the default value of CheckBoxOption.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 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
@NotNull private final SoundManager soundManager
SoundManager instance to affect.
| Constructor Detail | 
|---|
public SoundCheckBoxOption(@NotNull
                           SoundManager soundManager)
soundManager - the sound manager instance to affect| Method Detail | 
|---|
protected void execute(boolean checked)
execute in class CheckBoxOptionchecked - whether the check box option is checkedpublic boolean isDefaultChecked()
CheckBoxOption.isChecked().
isDefaultChecked in class CheckBoxOption