Class GUIFloorList

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

public class GUIFloorList extends GUIItemList<GUIItemFloor>
A GUIItemList for floor views.
See Also:
  • Constructor Details

    • GUIFloorList

      public GUIFloorList(@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 CommandQueue commandQueue, @NotNull @NotNull ItemPainter itemPainter, @NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull FacesManager facesManager, @NotNull @NotNull ItemSet itemSet, @NotNull @NotNull Image nextGroupFace, @NotNull @NotNull Image prevGroupFace, @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.
      commandQueue - the command queue for sending commands
      itemPainter - the item painter to use
      crossfireServerConnection - the crossfire server connection to use
      facesManager - the faces manager to use
      itemSet - the item set to use
      nextGroupFace - the image for "next group of items"
      prevGroupFace - the image for "prev group of items"
      guiFactory - the global GUI factory instance
  • Method Details

    • getNumLookObjects

      public int getNumLookObjects()
      Returns the preferred number of objects to display.
      Returns:
      the number of objects
    • newItem

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

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

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