com.realtime.crossfire.jxclient.items
Interface ItemView

All Known Implementing Classes:
AbstractItemView, FloorView, InventoryView

public interface ItemView

A list of CfItems.


Method Summary
 void addLocationListener(int index, LocationListener locationListener)
          Adds a LocationListener to be notified when the item displayed in a floor slot has changed.
 void addLocationsListener(LocationsListener locationsListener)
          Adds a LocationsListener to be notified when any displayed item has changed.
 CfItem getItem(int index)
          Returns the CfItem in a given slot.
 int getSize()
          Returns the number of items.
 void removeLocationListener(int index, LocationListener locationListener)
          Removes a LocationListener to be notified when the item displayed in a floor slot has changed.
 void removeLocationsListener(LocationsListener locationsListener)
          Removes a LocationsListener to be notified when any displayed item has changed.
 

Method Detail

addLocationListener

void addLocationListener(int index,
                         @NotNull
                         LocationListener locationListener)
Adds a LocationListener to be notified when the item displayed in a floor slot has changed.

Parameters:
index - the floor slot
locationListener - the location listener to add

addLocationsListener

void addLocationsListener(@NotNull
                          LocationsListener locationsListener)
Adds a LocationsListener to be notified when any displayed item has changed.

Parameters:
locationsListener - the locations listener to add

getItem

@Nullable
CfItem getItem(int index)
Returns the CfItem in a given slot.

Parameters:
index - the slot index
Returns:
the item or null if the slot is empty

getSize

int getSize()
Returns the number of items.

Returns:
the number of items

removeLocationListener

void removeLocationListener(int index,
                            @NotNull
                            LocationListener locationListener)
Removes a LocationListener to be notified when the item displayed in a floor slot has changed.

Parameters:
index - the floor slot
locationListener - the location listener to remove

removeLocationsListener

void removeLocationsListener(@NotNull
                             LocationsListener locationsListener)
Removes a LocationsListener to be notified when any displayed item has changed.

Parameters:
locationsListener - the locations listener to remove