Enum Class TextIcons.Icon

java.lang.Object
java.lang.Enum<TextIcons.Icon>
me.hackware.api.util.TextIcons.Icon
All Implemented Interfaces:
Serializable, Comparable<TextIcons.Icon>, Constable
Enclosing class:
TextIcons

public static enum TextIcons.Icon extends Enum<TextIcons.Icon>
The available icon glyphs. Codepoints run contiguously from INFO, and the order must match IconGlyphProvider.ICONS.
  • Enum Constant Details

    • INFO

      public static final TextIcons.Icon INFO
      Filled info circle — informational messages.
    • WARNING

      public static final TextIcons.Icon WARNING
      Warning triangle — warnings, errors, usage hints.
    • SKULL

      public static final TextIcons.Icon SKULL
      Skull — death notifications only. Logouts and disconnects use WARNING.
    • ERROR

      public static final TextIcons.Icon ERROR
      Filled circle with an exclamation — failures and bad usage.
    • LAN

      public static final TextIcons.Icon LAN
      LAN icon — local area network (chat prefix, connection notices).
  • Method Details

    • values

      public static TextIcons.Icon[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TextIcons.Icon valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • glyph

      public char glyph()
    • toString

      public String toString()
      The glyph itself, so an icon drops straight into a concatenated message.
      Overrides:
      toString in class Enum<TextIcons.Icon>