com.vaadin.flow.component.cookieconsent.
Enum CookieConsent.Position
- java.lang.Object
-
- java.lang.Enum<CookieConsent.Position>
-
- com.vaadin.flow.component.cookieconsent.CookieConsent.Position
-
All Implemented Interfaces:
Enclosing class:
public static enum CookieConsent.Position extends Enum<CookieConsent.Position>
Position of the banner. For
TOP
andBOTTOM
, the banner is shown with full width. For the corner positions, it is shown as a smaller popup.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM
BOTTOM_LEFT
BOTTOM_RIGHT
TOP
TOP_LEFT
TOP_RIGHT
-
Method Summary
All Methods Modifier and Type Method Description static CookieConsent.Position
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static CookieConsent.Position[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP
public static final CookieConsent.Position TOP
-
BOTTOM
public static final CookieConsent.Position BOTTOM
-
TOP_LEFT
public static final CookieConsent.Position TOP_LEFT
-
TOP_RIGHT
public static final CookieConsent.Position TOP_RIGHT
-
BOTTOM_LEFT
public static final CookieConsent.Position BOTTOM_LEFT
-
BOTTOM_RIGHT
public static final CookieConsent.Position BOTTOM_RIGHT
-
-
Method Detail
-
values
public static CookieConsent.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 (CookieConsent.Position c : CookieConsent.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 CookieConsent.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
-
-