java.lang.Object com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand
public class ExecSelectionCommand
A GUICommand
that executes a command on the selected item of a GUIItemList
.
Field Summary | |
---|---|
private CommandType |
command
The command to execute. |
private CommandQueue |
commandQueue
The command queue to use. |
private CrossfireServerConnection |
crossfireServerConnection
The connection to execute commands on. |
private FloorView |
floorView
The FloorView to use. |
private GUIItemList |
list
The list to execute in. |
Constructor Summary | |
---|---|
ExecSelectionCommand(GUIItemList list,
CommandType command,
CrossfireServerConnection crossfireServerConnection,
FloorView floorView,
CommandQueue commandQueue)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
canExecute()
Returns whether this command may be executed. |
void |
execute()
Executes the command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CommandType command
@NotNull private final CommandQueue commandQueue
@NotNull private final CrossfireServerConnection crossfireServerConnection
@NotNull private final FloorView floorView
FloorView
to use.
@NotNull private final GUIItemList list
Constructor Detail |
---|
public ExecSelectionCommand(@NotNull GUIItemList list, @NotNull CommandType command, @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull FloorView floorView, @NotNull CommandQueue commandQueue)
list
- the list to execute incommand
- the command to executecrossfireServerConnection
- the connection to execute commands onfloorView
- the floor view to usecommandQueue
- the command queue to useMethod Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand