java.lang.Objectcom.realtime.crossfire.jxclient.gui.item.GUIItemFloorFactory
public class GUIItemFloorFactory
A factory for creating GUIItemFloor instances.
| Field Summary | |
|---|---|
private CommandQueue |
commandQueue
The CommandQueue for sending commands. |
private CrossfireServerConnection |
crossfireServerConnection
The CrossfireServerConnection to use. |
private GUIElementListener |
elementListener
The GUIElementListener to notify. |
private FacesManager |
facesManager
The FacesManager to use. |
private FloorView |
floorView
The FloorView to use. |
private ItemPainter |
itemPainter
The ItemPainter to use. |
private ItemSet |
itemSet
The ItemSet to use. |
private java.lang.String |
name
The base name. |
private java.awt.Image |
nextGroupFace
The Image for "next group of items". |
private java.awt.Image |
prevGroupFace
The Image for "prev group of items". |
private TooltipManager |
tooltipManager
The tooltip manager to update. |
| Constructor Summary | |
|---|---|
GUIItemFloorFactory(TooltipManager tooltipManager,
GUIElementListener elementListener,
CommandQueue commandQueue,
java.lang.String name,
ItemPainter itemPainter,
CrossfireServerConnection crossfireServerConnection,
FacesManager facesManager,
FloorView floorView,
ItemSet itemSet,
java.awt.Image nextGroupFace,
java.awt.Image prevGroupFace)
Creates a new instance. |
|
| Method Summary | |
|---|---|
int |
getMoveLocation()
Returns the location to move items to when moving away. |
GUIElement |
newItem(int index)
Creates a new GUIItemInventory instance. |
GUIItemItem |
newTemplateItem(int cellHeight)
Creates a new GUIItemInventory instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final CommandQueue commandQueue
CommandQueue for sending commands.
@NotNull private final CrossfireServerConnection crossfireServerConnection
CrossfireServerConnection to use.
@NotNull private final GUIElementListener elementListener
GUIElementListener to notify.
@NotNull private final FacesManager facesManager
FacesManager to use.
@NotNull private final FloorView floorView
FloorView to use.
@NotNull private final ItemPainter itemPainter
ItemPainter to use.
@NotNull private final ItemSet itemSet
ItemSet to use.
@NotNull private final java.lang.String name
@NotNull private final java.awt.Image nextGroupFace
Image for "next group of items".
@NotNull private final java.awt.Image prevGroupFace
Image for "prev group of items".
@NotNull private final TooltipManager tooltipManager
| Constructor Detail |
|---|
public GUIItemFloorFactory(@NotNull
TooltipManager tooltipManager,
@NotNull
GUIElementListener elementListener,
@NotNull
CommandQueue commandQueue,
@NotNull
java.lang.String name,
@NotNull
ItemPainter itemPainter,
@NotNull
CrossfireServerConnection crossfireServerConnection,
@NotNull
FacesManager facesManager,
@NotNull
FloorView floorView,
@NotNull
ItemSet itemSet,
@NotNull
java.awt.Image nextGroupFace,
@NotNull
java.awt.Image prevGroupFace)
tooltipManager - the tooltip manager to updateelementListener - the element listener to notifycommandQueue - the command queue for sending commandsname - the base nameitemPainter - the item painter to usecrossfireServerConnection - the crossfire server connection to usefacesManager - the faces manager to usefloorView - the floor view to useitemSet - the item set to usenextGroupFace - the image for "next group of items"prevGroupFace - the image for "prev group of items"| Method Detail |
|---|
public int getMoveLocation()
getMoveLocation in interface GUIItemItemFactory@NotNull public GUIElement newItem(int index)
GUIItemInventory instance.
newItem in interface GUIItemItemFactoryindex - the item inventory's index
@NotNull public GUIItemItem newTemplateItem(int cellHeight)
GUIItemInventory instance.
newTemplateItem in interface GUIItemItemFactorycellHeight - the cell size