Crossfire JXClient, Trunk
Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.list.GUIInventoryList Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.list.GUIInventoryList:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.list.GUIInventoryList:
Collaboration graph

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
 

Detailed Description

A GUIItemList for inventory views.

Author
Andreas Kirschbaum

Definition at line 44 of file GUIInventoryList.java.

Constructor & Destructor Documentation

◆ GUIInventoryList()

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.

Parameters
tooltipManagerthe tooltip manager to update
elementListenerthe element listener to notify
namethe name of this element
cellWidththe width of cells
cellHeightthe height of cells
itemViewthe item view to monitor
currentItemthe label to update with information about the selected item.
commandQueuethe command queue for sending commands
itemPainterthe item painter for painting the icon
crossfireServerConnectionthe connection instance
facesManagerthe faces manager instance to use
floorViewthe floor view to use
guiFactorythe 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.

Member Function Documentation

◆ getTooltip()

String com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.getTooltip ( final int  index)
protected

◆ newItem()

GUIItemInventory com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.newItem ( final int  index)
protected

◆ notifyOpen()

void com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.notifyOpen ( )

Definition at line 149 of file GUIInventoryList.java.

Member Data Documentation

◆ commandQueue

final CommandQueue com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.commandQueue
private

◆ crossfireServerConnection

final CrossfireServerConnection com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.crossfireServerConnection
private

◆ elementListener

final GUIElementListener com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.elementListener
private

◆ facesManager

final FacesManager com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.facesManager
private

◆ floorView

final FloorView com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.floorView
private

◆ guiFactory

final GuiFactory com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.guiFactory
private

◆ itemPainter

final ItemPainter com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.itemPainter
private

◆ itemView

final ItemView com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.itemView
private

◆ name

final String com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.name
private

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 49 of file GUIInventoryList.java.

◆ tooltipManager

final TooltipManager com.realtime.crossfire.jxclient.gui.list.GUIInventoryList.tooltipManager
private

The documentation for this class was generated from the following file: