Package games.stendhal.common
Enum Class NotificationType
- All Implemented Interfaces:
Serializable
,Comparable<NotificationType>
,Constable
A logical notification type, which can be mapped to UI specific contexts.
This would be similar to logical styles vs. physical styles in HTML.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic Color
static Color
muted purplestatic Color
static Color
dark bluestatic Color
static Color
static Color
static Color
static Color
static Color
dark greenstatic Color
dark brownstatic Color
static Color
bright turquoise bluestatic Color
strong bright orangestatic Color
purplestatic Color
dark redprotected String
The mapping mnemonic.static String
normal is boldstatic String
regular is not bold -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Get the color that is tied to a notification type.Get the mapping mnemonic (programmatic name).static NotificationType
getServerNotificationType(String clientVersion)
Get notification type for server messages that the client can show without problems.Get the style that is tied to a notification type.static NotificationType
Returns the enum constant of this class with the specified name.static NotificationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT
-
ERROR
-
HEAL
-
INFORMATION
-
NEGATIVE
-
NORMAL
-
POISON
-
POSITIVE
-
EMOTE
-
GROUP
-
PRIVMSG
-
RESPONSE
-
SCENE_SETTING
-
SERVER
-
SIGNIFICANT_NEGATIVE
-
SIGNIFICANT_POSITIVE
-
TUTORIAL
-
SUPPORT
-
DETAILED
-
WARNING
-
-
Field Details
-
COLOR_CLIENT
-
COLOR_ERROR
-
COLOR_INFORMATION
-
COLOR_NEGATIVE
-
COLOR_NORMAL
-
COLOR_POSITIVE
-
COLOR_GROUP
dark blue -
COLOR_EMOTE
muted purple -
COLOR_PRIVMSG
-
COLOR_RESPONSE
dark green -
COLOR_SCENE_SETTING
dark brown -
COLOR_SIGNIFICANT_NEGATIVE
-
COLOR_SIGNIFICANT_POSITIVE
bright turquoise blue -
COLOR_TUTORIAL
purple -
COLOR_SUPPORT
strong bright orange -
COLOR_WARNING
dark red -
NORMALSTYLE
normal is bold- See Also:
- Constant Field Values
-
REGULAR
regular is not bold- See Also:
- Constant Field Values
-
mnemonic
The mapping mnemonic.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getMnemonic
Get the mapping mnemonic (programmatic name).- Returns:
- The mapping mnemonic.
-
getColor
Get the color that is tied to a notification type.- Returns:
- The appropriate color.
-
getStyleDescription
Get the style that is tied to a notification type.- Returns:
- The appropriate style.
-
getServerNotificationType
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
-