com.realtime.crossfire.jxclient.sound
Class SoundCheckBoxOption

java.lang.Object
  extended by com.realtime.crossfire.jxclient.settings.options.Option
      extended by com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
          extended by com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption

public class SoundCheckBoxOption
extends CheckBoxOption

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

soundManager

@NotNull
private final SoundManager soundManager
The SoundManager instance to affect.

Constructor Detail

SoundCheckBoxOption

public SoundCheckBoxOption(@NotNull
                           SoundManager soundManager)
Creates a new instance.

Parameters:
soundManager - the sound manager instance to affect
Method Detail

execute

protected void execute(boolean checked)
Execute the action associated with this check box option. Must be implemented in sub-classes.

Specified by:
execute in class CheckBoxOption
Parameters:
checked - whether the check box option is checked

isDefaultChecked

public boolean isDefaultChecked()
Return the default value of CheckBoxOption.isChecked().

Specified by:
isDefaultChecked in class CheckBoxOption
Returns:
The default value.