Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand:
Collaboration graph

Public Member Functions

boolean canExecute ()
 
 DialogToggleCommand (@NotNull final CommandCallback commandCallback, @NotNull final String dialog)
 
void execute ()
 
String getDialog ()
 

Private Attributes

final CommandCallback commandCallback
 
final String dialog
 

Detailed Description

A GUICommand which toggles the visibility of a dialog.

Author
Andreas Kirschbaum

Definition at line 33 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 52 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 67 of file DialogToggleCommand.java.

◆ execute()

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

◆ getDialog()

String com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.getDialog ( )

Returns the dialog to toggle.

Returns
the dialog to toggle

Definition at line 62 of file DialogToggleCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.dialog.

Referenced by com.realtime.crossfire.jxclient.gui.button.GUITextButton.GUITextButton().

Here is the caller 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: