com.vaadin.ui.
Enum Notification.Type
- java.lang.Object
-
- java.lang.Enum<Notification.Type>
-
- com.vaadin.ui.Notification.Type
-
All Implemented Interfaces:
Enclosing class:
public static enum Notification.Type extends Enum<Notification.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSISTIVE_NOTIFICATION
ERROR_MESSAGE
HUMANIZED_MESSAGE
TRAY_NOTIFICATION
WARNING_MESSAGE
-
Method Summary
All Methods Modifier and Type Method Description String
getStyle()
static Notification.Type
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static Notification.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HUMANIZED_MESSAGE
public static final Notification.Type HUMANIZED_MESSAGE
-
WARNING_MESSAGE
public static final Notification.Type WARNING_MESSAGE
-
ERROR_MESSAGE
public static final Notification.Type ERROR_MESSAGE
-
TRAY_NOTIFICATION
public static final Notification.Type TRAY_NOTIFICATION
-
ASSISTIVE_NOTIFICATION
public static final Notification.Type ASSISTIVE_NOTIFICATION
Since:
7.2
-
-
Method Detail
-
values
public static Notification.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Notification.Type c : Notification.Type.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Notification.Type valueOf​(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getStyle
public String getStyle()
Returns:
the style name for this notification type.
Since:
7.2
-
-