 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.list;
37 import java.awt.Image;
38 import org.jetbrains.annotations.NotNull;
39 import org.jetbrains.annotations.Nullable;
153 public GUIFloorList(@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 ItemSet itemSet, @NotNull
final Image
nextGroupFace, @NotNull
final Image
prevGroupFace, @NotNull
final GuiFactory guiFactory) {
154 super(
tooltipManager,
elementListener,
name,
cellWidth,
cellHeight,
itemView,
currentItem,
new GUIItemFloor(
tooltipManager,
elementListener,
commandQueue,
name+
"_template",
itemPainter, -1,
crossfireServerConnection,
itemView,
itemSet,
facesManager,
nextGroupFace,
prevGroupFace,
cellHeight,
guiFactory),
guiFactory);
182 return new GUIItemFloor(
tooltipManager,
elementListener,
commandQueue,
name+index,
itemPainter, index,
crossfireServerConnection,
itemView,
itemSet,
facesManager,
nextGroupFace,
prevGroupFace, 0,
guiFactory);
Maintains a mapping of face numbers to face data.
Paints Crossfire item images.
Model class maintaining the CfItems known to the player.
A GUIElement representing an in-game object in the ground view.
final ItemPainter itemPainter
The ItemPainter to use.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
final CommandQueue commandQueue
The CommandQueue for sending commands.
GUIFloorList(@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 ItemSet itemSet, @NotNull final Image nextGroupFace, @NotNull final Image prevGroupFace, @NotNull final GuiFactory guiFactory)
Creates a new instance.
final Image prevGroupFace
The Image for "prev group of items".
Abstract base class for all label classes.
Manages image information ("faces") needed to display the map view, items, and spell icons.
static final long serialVersionUID
The serial version UID.
String getTooltipText()
Returns a description suitable for a tooltip text.
final AbstractLabel currentItem
The label to update with information about the selected item.
final Image nextGroupFace
The Image for "next group of items".
The representation of a Crossfire Item, client-side.
final FacesManager facesManager
The FacesManager to use.
CfItem getItem(int index)
Returns the CfItem in a given slot.
final TooltipManager tooltipManager
The tooltip manager to update.
A GUIList instance that displays GUIItemItem instances.
final int cellHeight
The height of cells.
final String name
The base name.
Factory for creating Gui instances.
GUIItemFloor newItem(final int index)
final GuiFactory guiFactory
The global GuiFactory instance.
final int cellWidth
The width of cells.
final CrossfireServerConnection crossfireServerConnection
The CrossfireServerConnection to use.
final ItemView itemView
The ItemView to use.
final GUIElementListener elementListener
The GUIElementListener to notify.
Maintains the pending (ncom) commands sent to the server.
A GUIItemList for floor views.
int getNumLookObjects()
Returns the preferred number of objects to display.
String getTooltip(final int index)
final ItemSet itemSet
The ItemSet to use.
Listener for GUIElement related events.