com.vaadin.flow.component.applayout.
Enum AppLayout.Section
- java.lang.Object
-
- java.lang.Enum<AppLayout.Section>
-
- com.vaadin.flow.component.applayout.AppLayout.Section
-
All Implemented Interfaces:
Enclosing class:
public static enum AppLayout.Section extends Enum<AppLayout.Section>
Sections in the component that can be used as primary.
See Also:
-
-
Method Summary
All Methods Modifier and Type Method and Description static AppLayout.Section
fromWebcomponentValue(String webcomponentValue)
String
toWebcomponentValue()
static AppLayout.Section
valueOf(String name)
Returns the enum constant of this type with the specified name.
static AppLayout.Section[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAVBAR
public static final AppLayout.Section NAVBAR
-
DRAWER
public static final AppLayout.Section DRAWER
-
-
Method Detail
-
values
public static AppLayout.Section[] 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 (AppLayout.Section c : AppLayout.Section.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AppLayout.Section 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
-
toWebcomponentValue
public String toWebcomponentValue()
-
fromWebcomponentValue
public static AppLayout.Section fromWebcomponentValue(String webcomponentValue)
-
-