public enum NotificationVariant extends Enum<NotificationVariant>
vaadin-notification
component.Enum Constant and Description |
---|
LUMO_CONTRAST |
LUMO_ERROR |
LUMO_PRIMARY |
LUMO_SUCCESS |
Modifier and Type | Method and Description |
---|---|
String |
getVariantName()
Gets the variant name.
|
static NotificationVariant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationVariant LUMO_PRIMARY
public static final NotificationVariant LUMO_CONTRAST
public static final NotificationVariant LUMO_SUCCESS
public static final NotificationVariant LUMO_ERROR
public static NotificationVariant[] values()
for (NotificationVariant c : NotificationVariant.values()) System.out.println(c);
public static NotificationVariant valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getVariantName()
Copyright © 2023. All rights reserved.