Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand Class Reference

A GUICommand which toggles the visibility of a dialog. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand:
+ Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand:

Public Member Functions

boolean canExecute ()
 Returns whether this command may be executed.
Returns
whether this command may be executed
More...
 
 DialogToggleCommand (@NotNull final CommandCallback commandCallback, @NotNull final String dialog)
 Creates a new instance. More...
 
void execute ()
 Executes the command.Does nothing if called while canExecute() returns

false

. More...

 

Private Attributes

final CommandCallback commandCallback
 The CommandCallback to use. More...
 
final String dialog
 The dialog to toggle. More...
 

Detailed Description

A GUICommand which toggles the visibility of a dialog.

Author
Andreas Kirschbaum

Definition at line 32 of file DialogToggleCommand.java.

Constructor & Destructor Documentation

◆ DialogToggleCommand()

com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.DialogToggleCommand ( @NotNull final CommandCallback  commandCallback,
@NotNull final String  dialog 
)

Creates a new instance.

Parameters
commandCallbackthe command callback to use
dialogthe dialog to toggle

Definition at line 51 of file DialogToggleCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.commandCallback, and com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.dialog.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.canExecute ( )

Returns whether this command may be executed.

Returns
whether this command may be executed

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 60 of file DialogToggleCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.execute ( )

Executes the command.Does nothing if called while canExecute() returns

false

.

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 68 of file DialogToggleCommand.java.

References com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.toggleDialog().

+ Here is the call graph for this function:

Member Data Documentation

◆ commandCallback

final CommandCallback com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.commandCallback
private

◆ dialog

final String com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.dialog
private

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