22 package com.realtime.crossfire.jxclient.gui.list;
34 import org.jetbrains.annotations.NotNull;
35 import org.jetbrains.annotations.Nullable;
118 public GUIInventoryList(@NotNull
final TooltipManager tooltipManager, @NotNull
final GUIElementListener elementListener, @NotNull
final String name,
final int cellWidth,
final int cellHeight, @NotNull
final ItemView itemView, @Nullable
final AbstractLabel currentItem, @NotNull
final CommandQueue commandQueue, @NotNull
final ItemPainter itemPainter, @NotNull
final CrossfireServerConnection crossfireServerConnection, @NotNull
final FacesManager facesManager, @NotNull
final FloorView floorView) {
119 super(tooltipManager, elementListener, name, cellWidth, cellHeight, itemView, currentItem,
new GUIItemInventory(tooltipManager, elementListener, commandQueue, name+
"_template", itemPainter, -1, crossfireServerConnection, facesManager, floorView, itemView, cellHeight));
137 return new GUIItemInventory(tooltipManager, elementListener, commandQueue, name+index, itemPainter, index, crossfireServerConnection, facesManager, floorView, itemView, 0);
Listener for GUIElement related events.
Abstract base class for all label classes.
A GUIItem for displaying inventory objects.
A GUIItemList for inventory views.
GUIItemInventory newItem(final int index)
final ItemView itemView
The ItemView to use.
Manages image information ("faces") needed to display the map view, items, and spell icons...
final ItemPainter itemPainter
The item painter for painting the icon.
final FacesManager facesManager
The faces manager instance to use.
final String name
The base name for created elements.
A GUIList instance that displays GUIItemItem instances.
final TooltipManager tooltipManager
The tooltip manager to update.
static final long serialVersionUID
The serial version UID.
final GUIElementListener elementListener
The GUIElementListener to notify.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
final CommandQueue commandQueue
The command queue for sending commands.
GUIInventoryList(@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final int cellWidth, final int cellHeight, @NotNull final ItemView itemView, @Nullable final AbstractLabel currentItem, @NotNull final CommandQueue commandQueue, @NotNull final ItemPainter itemPainter, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final FacesManager facesManager, @NotNull final FloorView floorView)
Creates a new instance.
final FloorView floorView
The floor view to use.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Maintains the pending (ncom) commands sent to the server.
Paints Crossfire item images.
Provides a view to all items comprising the current floor view.
final AbstractLabel currentItem
The label to update with information about the selected item.
Maintains a mapping of face numbers to face data.