java.lang.Objectcom.realtime.crossfire.jxclient.shortcuts.Shortcut
com.realtime.crossfire.jxclient.shortcuts.ShortcutCommand
public class ShortcutCommand
A Shortcut that executes a Crossfire command.
| Field Summary | |
|---|---|
private java.lang.String |
command
The command to execute. |
private CommandQueue |
commandQueue
The command queue for sending commands. |
| Constructor Summary | |
|---|---|
ShortcutCommand(CommandQueue commandQueue,
java.lang.String command)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
displaysFace(Face face)
Returns whether this shortcut displays the given face. |
void |
dispose()
Releases all allocated resources. |
void |
execute()
Execute the shortcut. |
java.lang.String |
getCommand()
Return the command to execute. |
java.lang.String |
getTooltipText()
Returns the current tooltip text. |
void |
visit(ShortcutVisitor visitor)
Calls a ShortcutVisitor's visit() function for this
instance. |
| Methods inherited from class com.realtime.crossfire.jxclient.shortcuts.Shortcut |
|---|
addShortcutListener, fireModifiedEvent, removeShortcutListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final java.lang.String command
@NotNull private final CommandQueue commandQueue
| Constructor Detail |
|---|
public ShortcutCommand(@NotNull
CommandQueue commandQueue,
@NotNull
java.lang.String command)
commandQueue - the command queue for sending commandscommand - the command to execute| Method Detail |
|---|
public boolean displaysFace(Face face)
displaysFace in class Shortcutface - the face to check for
public void dispose()
dispose in class Shortcutpublic void execute()
execute in class Shortcut@NotNull public java.lang.String getCommand()
@NotNull public java.lang.String getTooltipText()
getTooltipText in class Shortcut
public void visit(@NotNull
ShortcutVisitor visitor)
ShortcutVisitor's visit() function for this
instance.
visit in class Shortcutvisitor - the visitor to call