Class ActivateCommandInputCommand
java.lang.Object
com.realtime.crossfire.jxclient.gui.textinput.ActivateCommandInputCommand
- All Implemented Interfaces:
GUICommand,GUICommand2
A
GUICommand which activates the command input field.-
Constructor Summary
ConstructorsConstructorDescriptionActivateCommandInputCommand(@NotNull String commandText, @NotNull CommandCallback commandCallback, @NotNull Macros macros) Creates a new instance. -
Method Summary
-
Constructor Details
-
ActivateCommandInputCommand
public ActivateCommandInputCommand(@NotNull @NotNull String commandText, @NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull Macros macros) Creates a new instance.- Parameters:
commandText- the command text to setcommandCallback- the command callback to affectmacros- the macros instance to use
-
-
Method Details
-
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
-
getCommandString
Description copied from interface:GUICommand2Returns the command as a string.- Specified by:
getCommandStringin interfaceGUICommand2- Returns:
- the command
-