Enum Constant and Description |
---|
ERROR
Error messages
|
OTHER
Other messages
|
WARNING
Warning messages
|
Modifier and Type | Field and Description |
---|---|
private java.awt.Color |
color
Associated color
|
private java.lang.String |
icon
Associated icon
|
private int |
level
Numeric ordering of the severities, 1 being major, 3 being minor
|
private java.lang.String |
message
Description of the severity code
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Gets the associated color
|
static void |
getColors()
Retrieves all colors once from the preferences to register them
|
java.lang.String |
getIcon()
Gets the associated icon
|
int |
getLevel()
Gets the severity level, 1 being major, 3 being minor
|
java.lang.String |
toString() |
static Severity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
private final int level
private final java.lang.String message
private final java.lang.String icon
private final java.awt.Color color
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static void getColors()
public java.lang.String getIcon()
public java.awt.Color getColor()
public int getLevel()