22 package com.realtime.crossfire.jxclient.gui.textinput;
27 import org.jetbrains.annotations.NotNull;
87 return commandText.isEmpty() ?
"-e" :
"-e "+
commandText;
void activateCommandInput(@NotNull String newText)
Activates the command input text field.
final Macros macros
The Macros instance to use.
A GUICommand that has a string representation.
String expandMacros(@NotNull final String string)
Expands all macro references.
final String commandText
The command text to set.
String getCommandString()
Returns the command as a string.the command
Manages macro expansion in command strings.
Interface that defines callback functions needed by commands.
final CommandCallback commandCallback
The CommandCallback to affect.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
ActivateCommandInputCommand(@NotNull final String commandText, @NotNull final CommandCallback commandCallback, @NotNull final Macros macros)
Creates a new instance.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
A GUICommand which activates the command input field.