Enum Class NotificationType

java.lang.Object
java.lang.Enum<NotificationType>
games.stendhal.common.NotificationType
All Implemented Interfaces:
Serializable, Comparable<NotificationType>, Constable

public enum NotificationType extends Enum<NotificationType>
A logical notification type, which can be mapped to UI specific contexts. This would be similar to logical styles vs. physical styles in HTML.
  • Enum Constant Details

  • Field Details

    • COLOR_CLIENT

      public static final Color COLOR_CLIENT
    • COLOR_ERROR

      public static final Color COLOR_ERROR
    • COLOR_INFORMATION

      public static final Color COLOR_INFORMATION
    • COLOR_NEGATIVE

      public static final Color COLOR_NEGATIVE
    • COLOR_NORMAL

      public static final Color COLOR_NORMAL
    • COLOR_POSITIVE

      public static final Color COLOR_POSITIVE
    • COLOR_GROUP

      public static final Color COLOR_GROUP
      dark blue
    • COLOR_EMOTE

      public static final Color COLOR_EMOTE
      muted purple
    • COLOR_PRIVMSG

      public static final Color COLOR_PRIVMSG
    • COLOR_RESPONSE

      public static final Color COLOR_RESPONSE
      dark green
    • COLOR_SCENE_SETTING

      public static final Color COLOR_SCENE_SETTING
      dark brown
    • COLOR_SIGNIFICANT_NEGATIVE

      public static final Color COLOR_SIGNIFICANT_NEGATIVE
    • COLOR_SIGNIFICANT_POSITIVE

      public static final Color COLOR_SIGNIFICANT_POSITIVE
      bright turquoise blue
    • COLOR_TUTORIAL

      public static final Color COLOR_TUTORIAL
      purple
    • COLOR_SUPPORT

      public static final Color COLOR_SUPPORT
      strong bright orange
    • COLOR_WARNING

      public static final Color COLOR_WARNING
      dark red
    • NORMALSTYLE

      public static final String NORMALSTYLE
      normal is bold
      See Also:
      Constant Field Values
    • REGULAR

      public static final String REGULAR
      regular is not bold
      See Also:
      Constant Field Values
    • mnemonic

      protected String mnemonic
      The mapping mnemonic.
  • Method Details

    • values

      public static NotificationType[] 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 NotificationType 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
    • getMnemonic

      public String getMnemonic()
      Get the mapping mnemonic (programmatic name).
      Returns:
      The mapping mnemonic.
    • getColor

      public Color getColor()
      Get the color that is tied to a notification type.
      Returns:
      The appropriate color.
    • getStyleDescription

      public String getStyleDescription()
      Get the style that is tied to a notification type.
      Returns:
      The appropriate style.
    • getServerNotificationType

      public static NotificationType getServerNotificationType(String clientVersion)
      Get notification type for server messages that the client can show without problems. Call this instead of using SERVER directly.
      Parameters:
      clientVersion - version of the client
      Returns:
      appropriate type