Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption Class Reference

A CheckBoxOption that enables/disables sound support. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption:
+ Collaboration diagram for com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption:

Public Member Functions

boolean isDefaultChecked ()
 
 SoundCheckBoxOption (@NotNull final SoundManager soundManager)
 Creates a new instance. More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
String getTooltipText ()
 Returns the tooltip text to explain this option. More...
 
boolean isChecked ()
 Returns the current state. More...
 
abstract boolean isDefaultChecked ()
 Returns the default value of isChecked(). More...
 
void setChecked (final boolean checked)
 Sets the current state. More...
 
void toggleChecked ()
 Toggles the checked state. More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.Option
void addOptionListener (@NotNull final OptionListener listener)
 Adds a listener for state changes. More...
 
boolean inhibitSave ()
 Returns whether the option should not be saved. More...
 
void removeOptionListener (@NotNull final OptionListener listener)
 Removes a listener for state changes. More...
 

Protected Member Functions

void execute (final boolean checked)
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
 CheckBoxOption (@NotNull final String tooltipText)
 Creates a new instance. More...
 
abstract void execute (final boolean checked)
 Executes the action associated with this check box option. More...
 
void fireStateChangedEvent ()
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.Option
void fireStateChangedEvent ()
 Notifies all listeners that the state has changed. More...
 

Private Attributes

final SoundManager soundManager
 The SoundManager instance to affect. More...
 

Detailed Description

A CheckBoxOption that enables/disables sound support.

Author
Andreas Kirschbaum

Definition at line 31 of file SoundCheckBoxOption.java.

Constructor & Destructor Documentation

◆ SoundCheckBoxOption()

com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.SoundCheckBoxOption ( @NotNull final SoundManager  soundManager)

Creates a new instance.

Parameters
soundManagerthe sound manager instance to affect

Definition at line 43 of file SoundCheckBoxOption.java.

References com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.soundManager.

Member Function Documentation

◆ execute()

void com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.execute ( final boolean  checked)
protected

Definition at line 52 of file SoundCheckBoxOption.java.

References com.realtime.crossfire.jxclient.sound.SoundManager.setEnabled().

+ Here is the call graph for this function:

◆ isDefaultChecked()

boolean com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.isDefaultChecked ( )

Definition at line 60 of file SoundCheckBoxOption.java.

Member Data Documentation

◆ soundManager

final SoundManager com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.soundManager
private

The documentation for this class was generated from the following file: