Crossfire JXClient, Trunk
|
Public Member Functions | |
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) | |
void | notifyOpen () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemInventory > | |
void | dispose () |
GUIItemItem | getSelectedItem () |
void | mouseClicked ( @NotNull final MouseEvent e) |
Protected Member Functions | |
String | getTooltip (final int index) |
GUIItemInventory | newItem (final int index) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemInventory > | |
void | activeChanged () |
GUIItemList ( @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 GUIItemItem templateItem, @NotNull final GuiFactory guiFactory) | |
abstract T | newItem (final int index) |
void | selectionChanged (final int selectedIndex) |
Private Attributes | |
final CommandQueue | commandQueue |
final CrossfireServerConnection | crossfireServerConnection |
final GUIElementListener | elementListener |
final FacesManager | facesManager |
final FloorView | floorView |
final GuiFactory | guiFactory |
final ItemPainter | itemPainter |
final ItemView | itemView |
final String | name |
final TooltipManager | tooltipManager |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
A GUIItemList for inventory views.
Definition at line 44 of file GUIInventoryList.java.
com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.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.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
cellWidth | the width of cells |
cellHeight | the height of cells |
itemView | the item view to monitor |
currentItem | the label to update with information about the selected item. |
commandQueue | the command queue for sending commands |
itemPainter | the item painter for painting the icon |
crossfireServerConnection | the connection instance |
facesManager | the faces manager instance to use |
floorView | the floor view to use |
guiFactory | the global GUI factory instance |
Definition at line 128 of file GUIInventoryList.java.
References com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.commandQueue, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemInventory >.currentItem, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.floorView, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.itemView, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.name, and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.tooltipManager.
|
protected |
Definition at line 154 of file GUIInventoryList.java.
References com.realtime.crossfire.jxclient.items.ItemView.getItem(), com.realtime.crossfire.jxclient.items.CfItem.getTooltipText(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.itemView.
|
protected |
Definition at line 144 of file GUIInventoryList.java.
References com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.commandQueue, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.floorView, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.itemView, com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.name, and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.tooltipManager.
void com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.notifyOpen | ( | ) |
Definition at line 149 of file GUIInventoryList.java.
|
private |
The command queue for sending commands.
Definition at line 79 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The connection instance.
Definition at line 91 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The GUIElementListener to notify.
Definition at line 61 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The faces manager instance to use.
Definition at line 97 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The floor view to use.
Definition at line 103 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The global GuiFactory instance.
Definition at line 109 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The item painter for painting the icon.
Definition at line 85 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The ItemView to use.
Definition at line 73 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.getTooltip(), com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
private |
The base name for created elements.
Definition at line 67 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().
|
staticprivate |
The serial version UID.
Definition at line 49 of file GUIInventoryList.java.
|
private |
The tooltip manager to update.
Definition at line 55 of file GUIInventoryList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.GUIInventoryList(), and com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem().