java.lang.Object com.realtime.crossfire.jxclient.gui.item.GUIItemInventoryFactory
public class GUIItemInventoryFactory
A factory for creating GUIItemInventory
instances.
Field Summary | |
---|---|
private CommandQueue |
commandQueue
|
private CrossfireServerConnection |
crossfireServerConnection
|
private GUIElementListener |
elementListener
The GUIElementListener to notify. |
private FacesManager |
facesManager
|
private FloorView |
floorView
|
private ItemView |
inventoryView
The inventory view to use. |
private ItemPainter |
itemPainter
|
private java.lang.String |
name
|
private TooltipManager |
tooltipManager
The tooltip manager to update. |
Constructor Summary | |
---|---|
GUIItemInventoryFactory(TooltipManager tooltipManager,
GUIElementListener elementListener,
CommandQueue commandQueue,
java.lang.String name,
ItemPainter itemPainter,
CrossfireServerConnection crossfireServerConnection,
FacesManager facesManager,
FloorView floorView,
ItemView inventoryView)
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
@NotNull private final CrossfireServerConnection crossfireServerConnection
@NotNull private final GUIElementListener elementListener
GUIElementListener
to notify.
@NotNull private final FacesManager facesManager
@NotNull private final FloorView floorView
@NotNull private final ItemView inventoryView
@NotNull private final ItemPainter itemPainter
@NotNull private final java.lang.String name
@NotNull private final TooltipManager tooltipManager
Constructor Detail |
---|
public GUIItemInventoryFactory(@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 ItemView inventoryView)
tooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyfloorView
- the floor view to useinventoryView
- the inventory view to useMethod Detail |
---|
public int getMoveLocation()
getMoveLocation
in interface GUIItemItemFactory
@NotNull public GUIElement newItem(int index)
GUIItemInventory
instance.
newItem
in interface GUIItemItemFactory
index
- the item inventory's index
@NotNull public GUIItemItem newTemplateItem(int cellHeight)
GUIItemInventory
instance.
newTemplateItem
in interface GUIItemItemFactory
cellHeight
- the cell size