Crossfire JXClient, Trunk
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.settings.options.CheckBoxOption Class Referenceabstract
Inheritance diagram for com.realtime.crossfire.jxclient.settings.options.CheckBoxOption:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.settings.options.CheckBoxOption:
Collaboration graph

Public Member Functions

String getTooltipText ()
 
boolean isChecked ()
 
abstract boolean isDefaultChecked ()
 
void setChecked (final boolean checked)
 
void toggleChecked ()
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.Option
void addOptionListener (@NotNull final OptionListener listener)
 
boolean inhibitSave ()
 
void removeOptionListener (@NotNull final OptionListener listener)
 

Protected Member Functions

 CheckBoxOption (@NotNull final String tooltipText)
 
abstract void execute (final boolean checked)
 
void fireStateChangedEvent ()
 

Private Attributes

boolean checked
 
final String tooltipText
 

Detailed Description

The base class for all check box options. It manages the checked/unchecked state and notifies listeners about changes.

Author
Andreas Kirschbaum

Definition at line 32 of file CheckBoxOption.java.

Constructor & Destructor Documentation

◆ CheckBoxOption()

com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.CheckBoxOption ( @NotNull final String  tooltipText)
protected

Creates a new instance.

Parameters
tooltipTextthe tooltip text to explain this option

Definition at line 49 of file CheckBoxOption.java.

References com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.tooltipText.

Member Function Documentation

◆ execute()

abstract void com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.execute ( final boolean  checked)
abstractprotected

◆ fireStateChangedEvent()

void com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.fireStateChangedEvent ( )
protected

◆ getTooltipText()

String com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.getTooltipText ( )

Returns the tooltip text to explain this option.

Returns
the tooltip text

Definition at line 105 of file CheckBoxOption.java.

References com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.tooltipText.

Referenced by com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.getTooltip().

Here is the caller graph for this function:

◆ isChecked()

boolean com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.isChecked ( )

◆ isDefaultChecked()

abstract boolean com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.isDefaultChecked ( )
abstract

◆ setChecked()

void com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.setChecked ( final boolean  checked)

◆ toggleChecked()

void com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.toggleChecked ( )

Toggles the checked state.

Definition at line 77 of file CheckBoxOption.java.

References com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.checked, and com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.setChecked().

Referenced by com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.mouseClicked().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ checked

boolean com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.checked
private

◆ tooltipText

final String com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.tooltipText
private

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