Crossfire JXClient, Trunk
|
Public Member Functions | |
int | getNumLookObjects () |
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) | |
void | notifyOpen () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemFloor > | |
void | dispose () |
GUIItemItem | getSelectedItem () |
void | mouseClicked ( @NotNull final MouseEvent e) |
Protected Member Functions | |
String | getTooltip (final int index) |
GUIItemFloor | newItem (final int index) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemFloor > | |
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 int | cellHeight |
final int | cellWidth |
final CommandQueue | commandQueue |
final CrossfireServerConnection | crossfireServerConnection |
final GUIElementListener | elementListener |
final FacesManager | facesManager |
final GuiFactory | guiFactory |
final ItemPainter | itemPainter |
final ItemSet | itemSet |
final ItemView | itemView |
final String | name |
final Image | nextGroupFace |
final Image | prevGroupFace |
final TooltipManager | tooltipManager |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
A GUIItemList for floor views.
Definition at line 45 of file GUIFloorList.java.
com.realtime.crossfire.jxclient.gui.list.GUIFloorList.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.
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 to use |
crossfireServerConnection | the crossfire server connection to use |
facesManager | the faces manager to use |
itemSet | the item set to use |
nextGroupFace | the image for "next group of items" |
prevGroupFace | the image for "prev group of items" |
guiFactory | the global GUI factory instance |
Definition at line 153 of file GUIFloorList.java.
References com.realtime.crossfire.jxclient.gui.list.GUIFloorList.cellHeight, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.cellWidth, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.commandQueue, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemFloor >.currentItem, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.itemSet, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.itemView, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.name, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.nextGroupFace, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.prevGroupFace, and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.tooltipManager.
int com.realtime.crossfire.jxclient.gui.list.GUIFloorList.getNumLookObjects | ( | ) |
Returns the preferred number of objects to display.
Definition at line 175 of file GUIFloorList.java.
References com.realtime.crossfire.jxclient.gui.list.GUIFloorList.cellHeight, and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.cellWidth.
|
protected |
Definition at line 191 of file GUIFloorList.java.
References com.realtime.crossfire.jxclient.items.ItemView.getItem(), com.realtime.crossfire.jxclient.items.CfItem.getTooltipText(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.itemView.
|
protected |
Definition at line 181 of file GUIFloorList.java.
References com.realtime.crossfire.jxclient.gui.list.GUIFloorList.commandQueue, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.itemSet, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.itemView, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.name, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.nextGroupFace, com.realtime.crossfire.jxclient.gui.list.GUIFloorList.prevGroupFace, and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.tooltipManager.
void com.realtime.crossfire.jxclient.gui.list.GUIFloorList.notifyOpen | ( | ) |
Definition at line 186 of file GUIFloorList.java.
|
private |
The height of cells.
Definition at line 78 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.getNumLookObjects(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList().
|
private |
The width of cells.
Definition at line 73 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.getNumLookObjects(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList().
|
private |
The CommandQueue for sending commands.
Definition at line 90 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The CrossfireServerConnection to use.
Definition at line 102 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The GUIElementListener to notify.
Definition at line 62 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The FacesManager to use.
Definition at line 108 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The global GuiFactory instance.
Definition at line 132 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The ItemPainter to use.
Definition at line 96 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The ItemSet to use.
Definition at line 114 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The ItemView to use.
Definition at line 84 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.getTooltip(), com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The base name.
Definition at line 68 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The Image for "next group of items".
Definition at line 120 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
private |
The Image for "prev group of items".
Definition at line 126 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().
|
staticprivate |
The serial version UID.
Definition at line 50 of file GUIFloorList.java.
|
private |
The tooltip manager to update.
Definition at line 56 of file GUIFloorList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIFloorList.GUIFloorList(), and com.realtime.crossfire.jxclient.gui.list.GUIFloorList.newItem().