Crossfire JXClient, Trunk
R20561
|
A CheckBoxOption that enables/disables sound support. More...
Public Member Functions | |
boolean | isDefaultChecked () |
SoundCheckBoxOption (@NotNull final SoundManager soundManager) | |
Creates a new instance. More... | |
![]() | |
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... | |
![]() | |
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) |
![]() | |
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 () |
![]() | |
void | fireStateChangedEvent () |
Notifies all listeners that the state has changed. More... | |
Private Attributes | |
final SoundManager | soundManager |
The SoundManager instance to affect. More... | |
A CheckBoxOption that enables/disables sound support.
Definition at line 31 of file SoundCheckBoxOption.java.
com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.SoundCheckBoxOption | ( | @NotNull final SoundManager | soundManager | ) |
Creates a new instance.
soundManager | the sound manager instance to affect |
Definition at line 43 of file SoundCheckBoxOption.java.
References com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.soundManager.
|
protected |
Definition at line 52 of file SoundCheckBoxOption.java.
References com.realtime.crossfire.jxclient.sound.SoundManager.setEnabled().
boolean com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.isDefaultChecked | ( | ) |
Definition at line 60 of file SoundCheckBoxOption.java.
|
private |
The SoundManager instance to affect.
Definition at line 37 of file SoundCheckBoxOption.java.
Referenced by com.realtime.crossfire.jxclient.sound.SoundCheckBoxOption.SoundCheckBoxOption().