Crossfire JXClient, Trunk
|
Public Member Functions | |
CfItem | getItem (final int index) |
int | getSize () |
SpellsView (@NotNull final SpellsManager spellsManager, @NotNull final FacesManager facesManager) | |
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 Attributes | |
final FacesManager | facesManager |
final SpellsManager | spellsManager |
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 of all spells a character knows.
Definition at line 37 of file SpellsView.java.
com.realtime.crossfire.jxclient.items.SpellsView.SpellsView | ( | @NotNull final SpellsManager | spellsManager, |
@NotNull final FacesManager | facesManager | ||
) |
Creates a new instance.
spellsManager | the spells to display |
facesManager | the faces manager for retrieving face information |
Definition at line 56 of file SpellsView.java.
References com.realtime.crossfire.jxclient.spells.SpellsManager.addCrossfireSpellChangedListener(), com.realtime.crossfire.jxclient.faces.FacesManager.addFacesManagerListener(), com.realtime.crossfire.jxclient.items.AbstractItemView.addModifiedRange(), com.realtime.crossfire.jxclient.spells.SpellsManager.displaysFace(), com.realtime.crossfire.jxclient.items.SpellsView.facesManager, com.realtime.crossfire.jxclient.spells.SpellsManager.getFilteredSpellsCount(), and com.realtime.crossfire.jxclient.items.SpellsView.spellsManager.
CfItem com.realtime.crossfire.jxclient.items.SpellsView.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 86 of file SpellsView.java.
References com.realtime.crossfire.jxclient.items.SpellsView.facesManager, com.realtime.crossfire.jxclient.faces.FacesManager.getFace(), com.realtime.crossfire.jxclient.spells.Spell.getFaceNum(), com.realtime.crossfire.jxclient.spells.SpellsManager.getFilteredSpell(), com.realtime.crossfire.jxclient.spells.Spell.getName(), com.realtime.crossfire.jxclient.spells.Spell.getTag(), and com.realtime.crossfire.jxclient.items.SpellsView.spellsManager.
int com.realtime.crossfire.jxclient.items.SpellsView.getSize | ( | ) |
Returns the number of items.
Implements com.realtime.crossfire.jxclient.items.ItemView.
Definition at line 80 of file SpellsView.java.
References com.realtime.crossfire.jxclient.spells.SpellsManager.getFilteredSpellsCount(), and com.realtime.crossfire.jxclient.items.SpellsView.spellsManager.
|
private |
The FacesManager for retrieving face information.
Definition at line 49 of file SpellsView.java.
Referenced by com.realtime.crossfire.jxclient.items.SpellsView.getItem(), and com.realtime.crossfire.jxclient.items.SpellsView.SpellsView().
|
private |
The spells to display.
Definition at line 43 of file SpellsView.java.
Referenced by com.realtime.crossfire.jxclient.items.SpellsView.getItem(), com.realtime.crossfire.jxclient.items.SpellsView.getSize(), and com.realtime.crossfire.jxclient.items.SpellsView.SpellsView().