22 package com.realtime.crossfire.jxclient.gui.commands;
29 import org.jetbrains.annotations.NotNull;
static boolean canExecute(@Nullable final GUIItemItem guiItem)
Returns whether the action can be executed.
GUIItemItem getSelectedItem()
Returns the selected GUIItemItem instance.
final FloorView floorView
The FloorView to use.
final CommandQueue commandQueue
The command queue to use.
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.
A GUIList instance that displays GUIItemItem instances.
final GUIItemList<?> list
The list to execute in.
final CrossfireServerConnection crossfireServerConnection
The connection to execute commands on.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
final CommandType command
The command to execute.
void execute(@Nullable final GUIItemItem guiItem, @NotNull final CrossfireServerConnection crossfireServerConnection, final int floor, @NotNull final CommandQueue commandQueue)
Executes the action.
A GUICommand that executes a command on the selected item of a GUIItemList.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Maintains the pending (ncom) commands sent to the server.
int getCurrentFloor()
Returns the current floor location.
Provides a view to all items comprising the current floor view.