 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.list;
36 import org.jetbrains.annotations.NotNull;
37 import org.jetbrains.annotations.Nullable;
120 public GUIQuestList(@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 QuestsManager questsManager, @NotNull
final CommandQueue commandQueue, @NotNull
final ItemPainter itemPainter, @NotNull
final FacesManager facesManager, @NotNull
final GuiFactory guiFactory) {
121 super(
tooltipManager,
elementListener,
name, cellWidth, cellHeight,
itemView,
currentItem,
new GUIItemQuest(
tooltipManager,
elementListener,
name+
"_template",
itemPainter, -1,
facesManager,
questsManager,
itemView,
commandQueue, cellHeight,
guiFactory),
guiFactory);
143 return new GUIItemQuest(
tooltipManager,
elementListener,
name+index,
itemPainter, index,
facesManager,
questsManager,
itemView,
commandQueue, 0,
guiFactory);
final ItemPainter itemPainter
The ItemPainter for painting the icon.
Maintains a mapping of face numbers to face data.
final GUIElementListener elementListener
The GUIElementListener to notify.
Paints Crossfire item images.
Manages all quests for a player.
static final long serialVersionUID
The serial version UID.
final QuestsManager questsManager
The quests to display.
Abstract base class for all label classes.
final CommandQueue commandQueue
The CommandQueue for sending commands.
A GUIList to display quests.
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.
final TooltipManager tooltipManager
The TooltipManager to update.
The representation of a Crossfire Item, client-side.
CfItem getItem(int index)
Returns the CfItem in a given slot.
GUIQuestList(@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 QuestsManager questsManager, @NotNull final CommandQueue commandQueue, @NotNull final ItemPainter itemPainter, @NotNull final FacesManager facesManager, @NotNull final GuiFactory guiFactory)
Creates a new instance.
final String name
The base name for created elements.
A GUIList instance that displays GUIItemItem instances.
A GUIItemItem that represents an entry in a GUIQuestList.
Factory for creating Gui instances.
final FacesManager facesManager
The FacesManager to use.
GUIItemQuest newItem(final int index)
final GuiFactory guiFactory
The global GuiFactory instance.
String getTooltip(final int index)
Maintains the pending (ncom) commands sent to the server.
Listener for GUIElement related events.
final ItemView itemView
The ItemView to use.