Crossfire JXClient, Trunk
|
Public Member Functions | |
FloorView (@NotNull final ItemSet itemSet) | |
int | getCurrentFloorTag () |
CfItem | getItem (final int index) |
int | getSize () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.items.AbstractItemView | |
void | addLocationListener (final int index, @NotNull final LocationListener locationListener) |
void | addLocationsListener (@NotNull final LocationsListener locationsListener) |
void | removeLocationListener (final int index, @NotNull final LocationListener locationListener) |
void | removeLocationsListener (@NotNull final LocationsListener locationsListener) |
Private Member Functions | |
int | getOffset () |
void | setCurrentFloorTag (final int currentFloorTag) |
Private Attributes | |
int | currentFloorTag |
final ItemListener | itemListener |
final ItemSet | itemSet |
final ItemSetListener | itemSetListener |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.items.AbstractItemView | |
AbstractItemView () | |
void | addModified (final int index) |
void | addModifiedRange (final int firstIndex, final int lastIndex) |
Provides a view to all items comprising the current floor view.
If an opened container exists, the floor view consists of the container in the first slot followed by the contained items. Otherwise, all objects in location
are returned.
Definition at line 36 of file FloorView.java.
com.realtime.crossfire.jxclient.items.FloorView.FloorView | ( | @NotNull final ItemSet | itemSet | ) |
Creates a new instance.
itemSet | the item set to use |
Definition at line 105 of file FloorView.java.
References com.realtime.crossfire.jxclient.items.ItemSet.addInventoryListener(), com.realtime.crossfire.jxclient.items.ItemSet.addItemSetListener(), com.realtime.crossfire.jxclient.items.FloorView.currentFloorTag, com.realtime.crossfire.jxclient.items.ItemSet.getOpenContainer(), com.realtime.crossfire.jxclient.items.FloorView.itemListener, com.realtime.crossfire.jxclient.items.FloorView.itemSet, com.realtime.crossfire.jxclient.items.FloorView.itemSetListener, and com.realtime.crossfire.jxclient.items.FloorView.setCurrentFloorTag().
int com.realtime.crossfire.jxclient.items.FloorView.getCurrentFloorTag | ( | ) |
Returns the current floor location.
Definition at line 116 of file FloorView.java.
References com.realtime.crossfire.jxclient.items.FloorView.currentFloorTag.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.button3Clicked(), com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess.cmdRequest(), and com.realtime.crossfire.jxclient.gui.commands.ExecSelectionCommand.execute().
CfItem com.realtime.crossfire.jxclient.items.FloorView.getItem | ( | final int | index | ) |
Returns the CfItem in a given slot.
index | the slot index |
Implements com.realtime.crossfire.jxclient.items.ItemView.
Definition at line 145 of file FloorView.java.
References com.realtime.crossfire.jxclient.items.FloorView.currentFloorTag, com.realtime.crossfire.jxclient.items.ItemSet.getInventoryItem(), com.realtime.crossfire.jxclient.items.ItemSet.getItemByTag(), and com.realtime.crossfire.jxclient.items.FloorView.itemSet.
|
private |
Returns the number of non-inventory items to be displayed on the floor. Currently, this can be zero or one (virtual container to close the currently opened container).
Definition at line 166 of file FloorView.java.
References com.realtime.crossfire.jxclient.items.FloorView.currentFloorTag.
Referenced by com.realtime.crossfire.jxclient.items.FloorView.getSize().
int com.realtime.crossfire.jxclient.items.FloorView.getSize | ( | ) |
Returns the number of items.
Implements com.realtime.crossfire.jxclient.items.ItemView.
Definition at line 139 of file FloorView.java.
References com.realtime.crossfire.jxclient.items.FloorView.currentFloorTag, com.realtime.crossfire.jxclient.items.ItemSet.getNumberOfItemsByLocation(), com.realtime.crossfire.jxclient.items.FloorView.getOffset(), and com.realtime.crossfire.jxclient.items.FloorView.itemSet.
Referenced by com.realtime.crossfire.jxclient.items.FloorView.setCurrentFloorTag().
|
private |
Updates the currently opened container that's contents are shown in the floor view.
currentFloorTag | the current floor tag |
Definition at line 125 of file FloorView.java.
References com.realtime.crossfire.jxclient.items.ItemSet.addInventoryListener(), com.realtime.crossfire.jxclient.items.AbstractItemView.addModifiedRange(), com.realtime.crossfire.jxclient.items.FloorView.currentFloorTag, com.realtime.crossfire.jxclient.items.FloorView.getSize(), com.realtime.crossfire.jxclient.items.FloorView.itemListener, com.realtime.crossfire.jxclient.items.FloorView.itemSet, and com.realtime.crossfire.jxclient.items.ItemSet.removeInventoryListener().
Referenced by com.realtime.crossfire.jxclient.items.FloorView.FloorView().
|
private |
The tag of the currently shown container or
if no container is open.
Definition at line 48 of file FloorView.java.
Referenced by com.realtime.crossfire.jxclient.items.FloorView.FloorView(), com.realtime.crossfire.jxclient.items.FloorView.getCurrentFloorTag(), com.realtime.crossfire.jxclient.items.FloorView.getItem(), com.realtime.crossfire.jxclient.items.FloorView.getOffset(), com.realtime.crossfire.jxclient.items.FloorView.getSize(), and com.realtime.crossfire.jxclient.items.FloorView.setCurrentFloorTag().
|
private |
The ItemListener attached to the current floor object.
Definition at line 73 of file FloorView.java.
Referenced by com.realtime.crossfire.jxclient.items.FloorView.FloorView(), and com.realtime.crossfire.jxclient.items.FloorView.setCurrentFloorTag().
|
private |
The ItemSet to monitor.
Definition at line 42 of file FloorView.java.
Referenced by com.realtime.crossfire.jxclient.items.FloorView.FloorView(), com.realtime.crossfire.jxclient.items.FloorView.getItem(), com.realtime.crossfire.jxclient.items.FloorView.getSize(), and com.realtime.crossfire.jxclient.items.FloorView.setCurrentFloorTag().
|
private |
The ItemSetListener for detecting opened or closed containers.
Definition at line 55 of file FloorView.java.
Referenced by com.realtime.crossfire.jxclient.items.FloorView.FloorView().