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

A list to display spell skills. More...

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

Public Member Functions

CfItem getItem (final int index)
 Returns the CfItem in a given slot.
Parameters
indexthe slot index
Returns
the item or
null
if the slot is empty
More...
 
int getSize ()
 Returns the number of items.
Returns
the number of items
More...
 
 SpellSkillView (@NotNull final SpellsManager spellsManager, @NotNull final FacesManager facesManager)
 Creates a new instance. More...
 
- 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
 The FacesManager for retrieving face information. More...
 
final SpellsManager spellsManager
 The spells to display. More...
 

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

A list to display spell skills.

Author
Nicolas Weeger

Definition at line 36 of file SpellSkillView.java.

Constructor & Destructor Documentation

◆ SpellSkillView()

com.realtime.crossfire.jxclient.items.SpellSkillView.SpellSkillView ( @NotNull final SpellsManager  spellsManager,
@NotNull final FacesManager  facesManager 
)

Creates a new instance.

Parameters
spellsManagerthe spells to display
facesManagerthe faces manager for retrieving face information

Definition at line 55 of file SpellSkillView.java.

References com.realtime.crossfire.jxclient.faces.FacesManager.addFacesManagerListener(), com.realtime.crossfire.jxclient.items.AbstractItemView.addModifiedRange(), com.realtime.crossfire.jxclient.items.SpellSkillView.facesManager, and com.realtime.crossfire.jxclient.items.SpellSkillView.spellsManager.

+ Here is the call graph for this function:

Member Function Documentation

◆ getItem()

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

Returns the CfItem in a given slot.

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

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

Definition at line 91 of file SpellSkillView.java.

References com.realtime.crossfire.jxclient.faces.FacesManager.getFace(), com.realtime.crossfire.jxclient.skills.Skill.getFace(), com.realtime.crossfire.jxclient.spells.SpellsManager.getSpellSkill(), and com.realtime.crossfire.jxclient.skills.Skill.toString().

+ Here is the call graph for this function:

◆ getSize()

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

Returns the number of items.

Returns
the number of items

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

Definition at line 82 of file SpellSkillView.java.

References com.realtime.crossfire.jxclient.spells.SpellsManager.getSpellSkills().

+ Here is the call graph for this function:

Member Data Documentation

◆ facesManager

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

The FacesManager for retrieving face information.

Definition at line 48 of file SpellSkillView.java.

Referenced by com.realtime.crossfire.jxclient.items.SpellSkillView.SpellSkillView().

◆ spellsManager

final SpellsManager com.realtime.crossfire.jxclient.items.SpellSkillView.spellsManager
private

The spells to display.

Definition at line 42 of file SpellSkillView.java.

Referenced by com.realtime.crossfire.jxclient.items.SpellSkillView.SpellSkillView().


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