Crossfire JXClient, Trunk
|
Public Member Functions | |
GUISpellList (@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 KeybindingsManager keybindingsManager, @NotNull final CommandQueue commandQueue, @NotNull final ItemPainter itemPainter, @NotNull final FacesManager facesManager, @NotNull final GuiFactory guiFactory) | |
void | notifyOpen () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpell > | |
void | dispose () |
GUIItemItem | getSelectedItem () |
void | mouseClicked ( @NotNull final MouseEvent e) |
Protected Member Functions | |
String | getTooltip (final int index) |
GUIItemSpell | newItem (final int index) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpell > | |
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 Member Functions | |
String | getBindings (@NotNull final Spell spell, @NotNull final String prefix, @NotNull final String legend) |
Private Attributes | |
final CommandQueue | commandQueue |
final GUIElementListener | elementListener |
final FacesManager | facesManager |
final GuiFactory | guiFactory |
final ItemPainter | itemPainter |
final ItemView | itemView |
final KeybindingsManager | keybindingsManager |
final String | name |
final SpellsManager | spellsManager |
final TooltipManager | tooltipManager |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
A GUIList to display spells.
Definition at line 45 of file GUISpellList.java.
com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList | ( | @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 KeybindingsManager | keybindingsManager, | ||
@NotNull final CommandQueue | commandQueue, | ||
@NotNull final ItemPainter | itemPainter, | ||
@NotNull final FacesManager | facesManager, | ||
@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 spells to display |
keybindingsManager | the bindings for displaying shortcuts |
commandQueue | the command queue for sending commands |
itemPainter | the item painter for painting the icon |
facesManager | the faces manager to use |
guiFactory | the global GUI factory instance |
Definition at line 129 of file GUISpellList.java.
References com.realtime.crossfire.jxclient.gui.list.GUISpellList.commandQueue, com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpell >.currentItem, com.realtime.crossfire.jxclient.gui.list.GUISpellList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUISpellList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUISpellList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUISpellList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUISpellList.itemView, com.realtime.crossfire.jxclient.gui.list.GUISpellList.keybindingsManager, com.realtime.crossfire.jxclient.gui.list.GUISpellList.name, com.realtime.crossfire.jxclient.gui.list.GUISpellList.spellsManager, and com.realtime.crossfire.jxclient.gui.list.GUISpellList.tooltipManager.
|
private |
Return a text with the keybindings for the spell.
spell | what to search bindings for |
prefix | invocation prefix, "cast " or "invoke ", to search for |
legend | the text before the binding(s) |
Definition at line 152 of file GUISpellList.java.
References com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.getBindings(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.keybindingsManager.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.getTooltip().
|
protected |
Definition at line 181 of file GUISpellList.java.
References com.realtime.crossfire.jxclient.gui.list.GUISpellList.getBindings(), com.realtime.crossfire.jxclient.spells.SpellsManager.getFilteredSpell(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.spellsManager.
|
protected |
Definition at line 199 of file GUISpellList.java.
References com.realtime.crossfire.jxclient.gui.list.GUISpellList.commandQueue, com.realtime.crossfire.jxclient.gui.list.GUISpellList.elementListener, com.realtime.crossfire.jxclient.gui.list.GUISpellList.facesManager, com.realtime.crossfire.jxclient.gui.list.GUISpellList.guiFactory, com.realtime.crossfire.jxclient.gui.list.GUISpellList.itemPainter, com.realtime.crossfire.jxclient.gui.list.GUISpellList.itemView, com.realtime.crossfire.jxclient.gui.list.GUISpellList.name, com.realtime.crossfire.jxclient.gui.list.GUISpellList.spellsManager, and com.realtime.crossfire.jxclient.gui.list.GUISpellList.tooltipManager.
void com.realtime.crossfire.jxclient.gui.list.GUISpellList.notifyOpen | ( | ) |
Definition at line 204 of file GUISpellList.java.
|
private |
The CommandQueue for sending commands.
Definition at line 92 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
private |
The GUIElementListener to notify.
Definition at line 62 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
private |
The FacesManager to use.
Definition at line 104 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
private |
The global GuiFactory instance.
Definition at line 110 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
private |
The ItemPainter for painting the icon.
Definition at line 98 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
private |
The ItemView to use.
Definition at line 74 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
private |
The keybinding for displaying shortcuts.
Definition at line 86 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.getBindings(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList().
|
private |
The base name for created elements.
Definition at line 68 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
staticprivate |
The serial version UID.
Definition at line 50 of file GUISpellList.java.
|
private |
The spells to display.
Definition at line 80 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.getTooltip(), com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().
|
private |
The TooltipManager to update.
Definition at line 56 of file GUISpellList.java.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.GUISpellList(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.newItem().