Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.items.ItemView Interface Reference

A list of CfItems. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.items.ItemView:
+ Collaboration diagram for com.realtime.crossfire.jxclient.items.ItemView:

Public Member Functions

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

Detailed Description

A list of CfItems.

Author
Andreas Kirschbaum

Definition at line 31 of file ItemView.java.

Member Function Documentation

◆ addLocationListener()

void com.realtime.crossfire.jxclient.items.ItemView.addLocationListener ( int  index,
@NotNull LocationListener  locationListener 
)

Adds a LocationListener to be notified when the item displayed in a floor slot has changed.

Parameters
indexthe floor slot
locationListenerthe location listener to add

Implemented in com.realtime.crossfire.jxclient.items.AbstractItemView.

Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.setIndex(), and com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.setIndex().

+ Here is the caller graph for this function:

◆ addLocationsListener()

void com.realtime.crossfire.jxclient.items.ItemView.addLocationsListener ( @NotNull LocationsListener  locationsListener)

Adds a LocationsListener to be notified when any displayed item has changed.

Parameters
locationsListenerthe locations listener to add

Implemented in com.realtime.crossfire.jxclient.items.AbstractItemView.

◆ getItem()

CfItem com.realtime.crossfire.jxclient.items.ItemView.getItem ( int  index)

Returns the CfItem in a given slot.

Parameters
indexthe slot index
Returns
the item or
null
if the slot is empty

Implemented in com.realtime.crossfire.jxclient.items.InventoryView, com.realtime.crossfire.jxclient.items.FloorView, com.realtime.crossfire.jxclient.items.SpellSkillView, com.realtime.crossfire.jxclient.items.SpellsView, com.realtime.crossfire.jxclient.items.QuestsView, com.realtime.crossfire.jxclient.items.KnowledgeView, and com.realtime.crossfire.jxclient.items.KnowledgeTypeView.

Referenced by com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpell >.selectionChanged(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.setChanged(), com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.setIndex(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.setIndex(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledgeType.setIndexNoListeners(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledge.setIndexNoListeners(), com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.setIndexNoListeners(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.setIndexNoListeners(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.setIndexNoListeners(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.setIndexNoListeners(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setIndexNoListeners(), and com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpell >.updateTooltip().

+ Here is the caller graph for this function:

◆ getSize()

◆ removeLocationListener()

void com.realtime.crossfire.jxclient.items.ItemView.removeLocationListener ( int  index,
@NotNull LocationListener  locationListener 
)

Removes a LocationListener to be notified when the item displayed in a floor slot has changed.

Parameters
indexthe floor slot
locationListenerthe location listener to remove

Implemented in com.realtime.crossfire.jxclient.items.AbstractItemView.

Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.setIndex(), and com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.setIndex().

+ Here is the caller graph for this function:

◆ removeLocationsListener()

void com.realtime.crossfire.jxclient.items.ItemView.removeLocationsListener ( @NotNull LocationsListener  locationsListener)

Removes a LocationsListener to be notified when any displayed item has changed.

Parameters
locationsListenerthe locations listener to remove

Implemented in com.realtime.crossfire.jxclient.items.AbstractItemView.

Referenced by com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpell >.dispose().

+ Here is the caller graph for this function:

The documentation for this interface was generated from the following file: