22 package com.realtime.crossfire.jxclient.gui.commands;
27 import org.jetbrains.annotations.NotNull;
Combines a list of GUIElements to for a gui.
DialogCloseCommand(@NotNull final CommandCallback commandCallback, @NotNull final String dialog)
Creates a new instance.
final CommandCallback commandCallback
The CommandCallback to use.
A GUICommand which closes a Gui.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
Interface that defines callback functions needed by commands.
final String dialog
The dialog to close.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
void closeDialog(@NotNull String dialog)
Closes a dialog.