|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Severity>
org.netbeans.validation.api.Severity
public enum Severity
Indicates the severity of a problem. See Problem.Kind.
Enum Constant Summary | |
---|---|
FATAL
A fatal problem with user input which must be corrected |
|
INFO
An information message for the user, which should not block them from proceeding but may provide advice |
|
WARNING
A warning to the user that they should change a value, but which does not block them from proceeding |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
badge()
|
java.awt.Color |
color()
Get a suitable color for displaying problem text |
javax.swing.Icon |
icon()
Get an icon version of the warning image |
java.awt.image.BufferedImage |
image()
Get a warning icon as an image |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Severity INFO
public static final Severity WARNING
public static final Severity FATAL
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic java.awt.image.BufferedImage image()
public javax.swing.Icon icon()
public java.awt.Color color()
public java.awt.image.BufferedImage badge()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |