Class GUISpellSkillList

All Implemented Interfaces:
GUIElement, GUIScrollable, ImageObserver, MenuContainer, Serializable

public class GUISpellSkillList extends GUIItemList<GUIItemSpellSkill>
A GUIItemList displaying spell skills.
See Also:
  • Constructor Details

    • GUISpellSkillList

      public GUISpellSkillList(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, int cellWidth, int cellHeight, @NotNull @NotNull ItemView itemView, @Nullable @Nullable AbstractLabel currentItem, @NotNull @NotNull SpellsManager spellsManager, @NotNull @NotNull ItemPainter itemPainter, @NotNull @NotNull FacesManager facesManager, @NotNull @NotNull FaceImages defaultSkillIcon, @NotNull @NotNull GuiFactory guiFactory)
      Creates a new instance.
      Parameters:
      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
  • Method Details

    • getTooltip

      @Nullable protected @Nullable String getTooltip(int index)
      Description copied from class: GUIList
      Returns the tooltip text.
      Specified by:
      getTooltip in class GUIList<GUIItemSpellSkill>
      Parameters:
      index - the index to use
      Returns:
      the tooltip text
    • newItem

      @NotNull protected @NotNull GUIItemSpellSkill newItem(int index)
      Description copied from class: GUIItemList
      Creates a new GUIElement instance.
      Specified by:
      newItem in class GUIItemList<GUIItemSpellSkill>
      Parameters:
      index - the item inventory's index
      Returns:
      the new instance
    • selectionChanged

      protected void selectionChanged(int selectedIndex)
      Description copied from class: GUIList
      Called whenever the selected list entry has changed.
      Overrides:
      selectionChanged in class GUIItemList<GUIItemSpellSkill>
      Parameters:
      selectedIndex - the selected list entry
    • notifyOpen

      public void notifyOpen()
      Description copied from interface: GUIElement
      Called each time the enclosing dialog is opened (or raised).