22 package com.realtime.crossfire.jxclient.gui.commands;
26 import org.jetbrains.annotations.NotNull;
final CommandCallback commandCallback
The CommandCallback to use.
DialogToggleCommand(@NotNull final CommandCallback commandCallback, @NotNull final String dialog)
Creates a new instance.
final String dialog
The dialog to toggle.
A GUICommand which toggles the visibility of a dialog.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
Interface that defines callback functions needed by commands.
void toggleDialog(@NotNull String dialog)
Toggles a dialog.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .