public static enum AlarmTableModel.PriorityLabel extends java.lang.Enum<AlarmTableModel.PriorityLabel>
| Modifier and Type | Field and Description |
|---|---|
java.awt.Color |
color
The color of the entry in the alarm table
|
java.lang.String |
description
The description label
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fromPriorityDesc(int n) |
static AlarmTableModel.PriorityLabel |
fromPriorityNumber(int priority) |
java.lang.String |
toString() |
static AlarmTableModel.PriorityLabel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlarmTableModel.PriorityLabel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlarmTableModel.PriorityLabel VERY_HIGH
public static final AlarmTableModel.PriorityLabel HIGH
public static final AlarmTableModel.PriorityLabel MEDIUM
public static final AlarmTableModel.PriorityLabel LOW
public final java.lang.String description
public final java.awt.Color color
public static AlarmTableModel.PriorityLabel[] values()
for (AlarmTableModel.PriorityLabel c : AlarmTableModel.PriorityLabel.values()) System.out.println(c);
public static AlarmTableModel.PriorityLabel 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 java.lang.String toString()
toString in class java.lang.Enum<AlarmTableModel.PriorityLabel>public static AlarmTableModel.PriorityLabel fromPriorityNumber(int priority)
priority - The priorityAlarmTableModel.PriorityLabel of the given prioritypublic static java.lang.String fromPriorityDesc(int n)
n - The number of the priority