Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.items.KnowledgeView Class Reference

Displays knowledge items the player knows. More...

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

Public Member Functions

CfItem getItem (final int index)
 Returns the CfItem in a given slot. More...
 
int getSize ()
 Returns the number of items. More...
 
 KnowledgeView (@NotNull final FacesManager facesManager, @NotNull final KnowledgeManager knowledgeManager)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.items.AbstractItemView
void addLocationListener (final int index, @NotNull final 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
More...
 
void addLocationsListener (@NotNull final LocationsListener locationsListener)
 Adds a LocationsListener to be notified when any displayed item has changed.
Parameters
locationsListenerthe locations listener to add
More...
 
void removeLocationListener (final int index, @NotNull final 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
More...
 
void removeLocationsListener (@NotNull final LocationsListener locationsListener)
 Removes a LocationsListener to be notified when any displayed item has changed.
Parameters
locationsListenerthe locations listener to remove
More...
 

Private Attributes

final FacesManager facesManager
 
final KnowledgeManager knowledgeManager
 

Additional Inherited Members

- Protected Member Functions inherited from com.realtime.crossfire.jxclient.items.AbstractItemView
 AbstractItemView ()
 Creates a new instance. More...
 
void addModified (final int index)
 Marks a slot as modified. More...
 
void addModifiedRange (final int firstIndex, final int lastIndex)
 Marks a range of slots as modified. More...
 

Detailed Description

Displays knowledge items the player knows.

Author
Nicolas Weeger

Definition at line 15 of file KnowledgeView.java.

Constructor & Destructor Documentation

◆ KnowledgeView()

com.realtime.crossfire.jxclient.items.KnowledgeView.KnowledgeView ( @NotNull final FacesManager  facesManager,
@NotNull final KnowledgeManager  knowledgeManager 
)

Member Function Documentation

◆ getItem()

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

◆ getSize()

int com.realtime.crossfire.jxclient.items.KnowledgeView.getSize ( )

Returns the number of items.

Returns
the number of items

Implements com.realtime.crossfire.jxclient.items.ItemView.

Definition at line 40 of file KnowledgeView.java.

References com.realtime.crossfire.jxclient.knowledge.KnowledgeManager.getKnowledgeCount().

+ Here is the call graph for this function:

Member Data Documentation

◆ facesManager

final FacesManager com.realtime.crossfire.jxclient.items.KnowledgeView.facesManager
private

◆ knowledgeManager

final KnowledgeManager com.realtime.crossfire.jxclient.items.KnowledgeView.knowledgeManager
private

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