Class GUILabelLog

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

public class GUILabelLog extends GUILog
A gui element implementing a static text field which may contain media tags.
See Also:
  • Constructor Details

    • GUILabelLog

      public GUILabelLog(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, @Nullable @Nullable Image backgroundImage, @NotNull @NotNull Fonts fonts, @NotNull @NotNull Color defaultColor, @NotNull @NotNull Color selectionColor, @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
      backgroundImage - the background image; may be null if unused
      fonts - the Fonts instance for looking up fonts
      defaultColor - the default color to use for text message not specifying a color
      selectionColor - the selection color
      guiFactory - the global GUI factory instance
  • Method Details

    • updateText

      public void updateText(@NotNull @NotNull CharSequence string, int type, int subtype)
      Sets the displayed text by parsing a string.
      Parameters:
      string - the string to parse
      type - the message type
      subtype - the message subtype
    • notifyOpen

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

      @Nullable public @Nullable TooltipText getTooltip()
      Description copied from class: AbstractGUIElement
      Returns the current tooltip text.
      Specified by:
      getTooltip in class AbstractGUIElement
      Returns:
      the tooltip text or null to not show a tooltip