Class ShortcutCommand
- java.lang.Object
-
- com.realtime.crossfire.jxclient.shortcuts.Shortcut
-
- com.realtime.crossfire.jxclient.shortcuts.ShortcutCommand
-
-
Constructor Summary
Constructors Constructor Description ShortcutCommand(@NotNull CommandQueue commandQueue, @NotNull java.lang.String command)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandisplaysFace(Face face)Returns whether this shortcut displays the given face.voiddispose()Releases all allocated resources.voidexecute()Executes the shortcut.@NotNull java.lang.StringgetCommand()Returns the command to execute.@NotNull java.lang.StringgetTooltipText()Returns the current tooltip text.voidvisit(@NotNull ShortcutVisitor visitor)Calls aShortcutVisitor'svisit()function for this instance.-
Methods inherited from class com.realtime.crossfire.jxclient.shortcuts.Shortcut
addShortcutListener, fireModifiedEvent, removeShortcutListener
-
-
-
-
Constructor Detail
-
ShortcutCommand
public ShortcutCommand(@NotNull @NotNull CommandQueue commandQueue, @NotNull @NotNull java.lang.String command)Creates a new instance.- Parameters:
commandQueue- the command queue for sending commandscommand- the command to execute
-
-
Method Detail
-
getCommand
@NotNull public @NotNull java.lang.String getCommand()
Returns the command to execute.- Returns:
- the command
-
dispose
public void dispose()
Description copied from class:ShortcutReleases all allocated resources.
-
execute
public void execute()
Description copied from class:ShortcutExecutes the shortcut.
-
getTooltipText
@NotNull public @NotNull java.lang.String getTooltipText()
Description copied from class:ShortcutReturns the current tooltip text.- Specified by:
getTooltipTextin classShortcut- Returns:
- the tooltip text
-
visit
public void visit(@NotNull @NotNull ShortcutVisitor visitor)Description copied from class:ShortcutCalls aShortcutVisitor'svisit()function for this instance.
-
displaysFace
public boolean displaysFace(Face face)
Description copied from class:ShortcutReturns whether this shortcut displays the given face.- Specified by:
displaysFacein classShortcut- Parameters:
face- the face to check for- Returns:
- whether the face is displayed
-
-