Crossfire JXClient, Trunk
|
Public Member Functions | |
GUISpellSkillList (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final int cellWidth, final int cellHeight, @NotNull final ItemView itemView, @Nullable final AbstractLabel currentItem, @NotNull final SpellsManager spellsManager, @NotNull final ItemPainter itemPainter, @NotNull final FacesManager facesManager, @NotNull final FaceImages defaultSkillIcon, @NotNull final GuiFactory guiFactory) | |
void | notifyOpen () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpellSkill > | |
void | dispose () |
GUIItemItem | getSelectedItem () |
void | mouseClicked ( @NotNull final MouseEvent e) |
Protected Member Functions | |
String | getTooltip (final int index) |
GUIItemSpellSkill | newItem (final int index) |
void | selectionChanged (final int selectedIndex) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpellSkill > | |
void | activeChanged () |
GUIItemList ( @NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final int cellWidth, final int cellHeight, @NotNull final ItemView itemView, @Nullable final AbstractLabel currentItem, @NotNull final GUIItemItem templateItem, @NotNull final GuiFactory guiFactory) | |
abstract T | newItem (final int index) |
void | selectionChanged (final int selectedIndex) |
Private Attributes | |
final FaceImages | defaultSkillIcon |
final GUIElementListener | elementListener |
final FacesManager | facesManager |
final GuiFactory | guiFactory |
final ItemPainter | itemPainter |
final ItemView | itemView |
final String | name |
final SpellsManager | spellsManager |
final TooltipManager | tooltipManager |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
A GUIItemList displaying spell skills.
Definition at line 43 of file GUISpellSkillList.java.
com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
final int | cellWidth, | ||
final int | cellHeight, | ||
@NotNull final ItemView | itemView, | ||
@Nullable final AbstractLabel | currentItem, | ||
@NotNull final SpellsManager | spellsManager, | ||
@NotNull final ItemPainter | itemPainter, | ||
@NotNull final FacesManager | facesManager, | ||
@NotNull final FaceImages | defaultSkillIcon, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
cellWidth | the width of cells |
cellHeight | the height of cells |
itemView | the item view to monitor |
currentItem | the label to update with information about the selected item. |
spellsManager | the skills to display |
itemPainter | the item painter for painting the icon |
facesManager | the faces manager to use |
defaultSkillIcon | the default icon to use the skills if not defined |
guiFactory | the global GUI factory instance |
Definition at line 121 of file GUISpellSkillList.java.
References com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpellSkill >.currentItem, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.defaultSkillIcon, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.itemView, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.name, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.spellsManager, and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.tooltipManager.
|
protected |
Definition at line 136 of file GUISpellSkillList.java.
References com.realtime.crossfire.jxclient.skills.Skill.getLevel(), com.realtime.crossfire.jxclient.spells.SpellsManager.getSpellSkill(), com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.spellsManager, and com.realtime.crossfire.jxclient.skills.Skill.toString().
|
protected |
Definition at line 151 of file GUISpellSkillList.java.
References com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.defaultSkillIcon, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.itemView, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.name, com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.spellsManager, and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.tooltipManager.
void com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.notifyOpen | ( | ) |
Definition at line 165 of file GUISpellSkillList.java.
|
protected |
Definition at line 156 of file GUISpellSkillList.java.
References com.realtime.crossfire.jxclient.spells.SpellsManager.filterSkill(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.spellsManager.
|
private |
The default FaceImages to use for the skills if not defined.
Definition at line 96 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().
|
private |
The GUIElementListener to notify.
Definition at line 60 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().
|
private |
The FacesManager to use.
Definition at line 90 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().
|
private |
The global GuiFactory instance.
Definition at line 102 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().
|
private |
The ItemPainter for painting the icon.
Definition at line 84 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().
|
private |
The ItemView to use.
Definition at line 72 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().
|
private |
The base name for created elements.
Definition at line 66 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().
|
staticprivate |
The serial version UID.
Definition at line 48 of file GUISpellSkillList.java.
|
private |
The spells to display.
Definition at line 78 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.getTooltip(), com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.selectionChanged().
|
private |
The TooltipManager to update.
Definition at line 54 of file GUISpellSkillList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.GUISpellSkillList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellSkillList.newItem().