Class DialogOpenCommand
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.commands.DialogOpenCommand
-
- All Implemented Interfaces:
GUICommand
public class DialogOpenCommand extends java.lang.Object implements GUICommand
AGUICommandwhich opens aGuidialog.
-
-
Constructor Summary
Constructors Constructor Description DialogOpenCommand(@NotNull CommandCallback commandCallback, @NotNull java.lang.String dialog)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute()Returns whether this command may be executed.voidexecute()Executes the command.
-
-
-
Constructor Detail
-
DialogOpenCommand
public DialogOpenCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull java.lang.String dialog)Creates a new instance.- Parameters:
commandCallback- the command callback to usedialog- the dialog to open
-
-
Method Detail
-
canExecute
public boolean canExecute()
Description copied from interface:GUICommandReturns whether this command may be executed.- Specified by:
canExecutein interfaceGUICommand- Returns:
- whether this command may be executed
-
execute
public void execute()
Description copied from interface:GUICommandExecutes the command. Does nothing if called whileGUICommand.canExecute()returnsfalse.- Specified by:
executein interfaceGUICommand
-
-