Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
ExecSelectionCommand (@NotNull final GUIItemList<?> list, @NotNull final CommandType command, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final FloorView floorView, @NotNull final CommandQueue commandQueue) | |
void | execute () |
Private Attributes | |
final CommandType | command |
final CommandQueue | commandQueue |
final CrossfireServerConnection | crossfireServerConnection |
final FloorView | floorView |
final GUIItemList<?> | list |
A GUICommand that executes a command on the selected item of a GUIItemList.
Definition at line 37 of file ExecSelectionCommand.java.
com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.ExecSelectionCommand | ( | @NotNull final GUIItemList<?> | list, |
@NotNull final CommandType | command, | ||
@NotNull final CrossfireServerConnection | crossfireServerConnection, | ||
@NotNull final FloorView | floorView, | ||
@NotNull final CommandQueue | commandQueue | ||
) |
Creates a new instance.
list | the list to execute in |
command | the command to execute |
crossfireServerConnection | the connection to execute commands on |
floorView | the floor view to use |
commandQueue | the command queue to use |
Definition at line 77 of file ExecSelectionCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.command, com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.commandQueue, com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.floorView, and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.list.
boolean com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 86 of file ExecSelectionCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.CommandType.canExecute(), com.realtime.crossfire.jxclient.gui.list.GUIItemList< T extends GUIItemItem >.getSelectedItem(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.list.
void com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 91 of file ExecSelectionCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.command, com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.commandQueue, com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.commands.CommandType.execute(), com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.floorView, com.realtime.crossfire.jxclient.items.FloorView.getCurrentFloorTag(), com.realtime.crossfire.jxclient.gui.list.GUIItemList< T extends GUIItemItem >.getSelectedItem(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.list.
|
private |
The command to execute.
Definition at line 49 of file ExecSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.ExecSelectionCommand(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute().
|
private |
The command queue to use.
Definition at line 67 of file ExecSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.ExecSelectionCommand(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute().
|
private |
The connection to execute commands on.
Definition at line 55 of file ExecSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.ExecSelectionCommand(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute().
|
private |
The FloorView to use.
Definition at line 61 of file ExecSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.ExecSelectionCommand(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute().
|
private |
The list to execute in.
Definition at line 43 of file ExecSelectionCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.canExecute(), com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.ExecSelectionCommand(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute().