 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.list;
37 import org.jetbrains.annotations.NotNull;
38 import org.jetbrains.annotations.Nullable;
128 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, @NotNull
final GuiFactory guiFactory) {
129 super(
tooltipManager,
elementListener,
name, cellWidth, cellHeight,
itemView,
currentItem,
new GUIItemInventory(
tooltipManager,
elementListener,
commandQueue,
name+
"_template",
itemPainter, -1,
crossfireServerConnection,
facesManager,
floorView,
itemView, cellHeight,
guiFactory),
guiFactory);
145 return new GUIItemInventory(
tooltipManager,
elementListener,
commandQueue,
name+index,
itemPainter, index,
crossfireServerConnection,
facesManager,
floorView,
itemView, 0,
guiFactory);
Maintains a mapping of face numbers to face data.
Paints Crossfire item images.
final ItemView itemView
The ItemView to use.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
A GUIItem for displaying inventory objects.
Abstract base class for all label classes.
static final long serialVersionUID
The serial version UID.
final ItemPainter itemPainter
The item painter for painting the icon.
A GUIItemList for inventory views.
Manages image information ("faces") needed to display the map view, items, and spell icons.
String getTooltipText()
Returns a description suitable for a tooltip text.
final AbstractLabel currentItem
The label to update with information about the selected item.
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, @NotNull final GuiFactory guiFactory)
Creates a new instance.
The representation of a Crossfire Item, client-side.
GUIItemInventory newItem(final int index)
final CrossfireServerConnection crossfireServerConnection
The connection instance.
CfItem getItem(int index)
Returns the CfItem in a given slot.
final String name
The base name for created elements.
A GUIList instance that displays GUIItemItem instances.
Factory for creating Gui instances.
final TooltipManager tooltipManager
The tooltip manager to update.
final CommandQueue commandQueue
The command queue for sending commands.
final GUIElementListener elementListener
The GUIElementListener to notify.
final FacesManager facesManager
The faces manager instance to use.
final GuiFactory guiFactory
The global GuiFactory instance.
final FloorView floorView
The floor view to use.
Provides a view to all items comprising the current floor view.
Maintains the pending (ncom) commands sent to the server.
String getTooltip(final int index)
Listener for GUIElement related events.