com.vaadin.flow.component.notification.
Enum Notification.Position
- java.lang.Object
-
- java.lang.Enum<Notification.Position>
-
- com.vaadin.flow.component.notification.Notification.Position
-
All Implemented Interfaces:
Enclosing class:
public static enum Notification.Position extends Enum<Notification.Position>
Enumeration of all available positions for notification component
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_CENTER
BOTTOM_END
BOTTOM_START
BOTTOM_STRETCH
MIDDLE
TOP_CENTER
TOP_END
TOP_START
TOP_STRETCH
-
Method Summary
All Methods Modifier and Type Method Description String
getClientName()
Gets name that is used in the client side representation of the component.
static Notification.Position
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static Notification.Position[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_STRETCH
public static final Notification.Position TOP_STRETCH
-
TOP_START
public static final Notification.Position TOP_START
-
TOP_CENTER
public static final Notification.Position TOP_CENTER
-
TOP_END
public static final Notification.Position TOP_END
-
MIDDLE
public static final Notification.Position MIDDLE
-
BOTTOM_START
public static final Notification.Position BOTTOM_START
-
BOTTOM_CENTER
public static final Notification.Position BOTTOM_CENTER
-
BOTTOM_END
public static final Notification.Position BOTTOM_END
-
BOTTOM_STRETCH
public static final Notification.Position BOTTOM_STRETCH
-
-
Method Detail
-
values
public static Notification.Position[] 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.Position c : Notification.Position.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.Position 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
-
getClientName
public String getClientName()
Gets name that is used in the client side representation of the component.
Returns:
the name used in the client side representation of the component.
-
-