com.vaadin.ui
Enum Notification.Type
java.lang.Object
java.lang.Enum<Notification.Type>
com.vaadin.ui.Notification.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Notification.Type>
- Enclosing class:
- Notification
public static enum Notification.Type
- extends java.lang.Enum<Notification.Type>
|
Method Summary |
java.lang.String |
getStyle()
|
static Notification.Type |
valueOf(java.lang.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. |
| 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 |
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
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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getStyle
public java.lang.String getStyle()
- Returns:
- the style name for this notification type.
- Since:
- 7.2
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.