com.vaadin.flow.component.grid.
Enum CellFocusEvent.GridSection
- java.lang.Object
-
- java.lang.Enum<CellFocusEvent.GridSection>
-
- com.vaadin.flow.component.grid.CellFocusEvent.GridSection
-
All Implemented Interfaces:
Enclosing class:
public static enum CellFocusEvent.GridSection extends Enum<CellFocusEvent.GridSection>
An enum representing the different sections of a grid.
-
-
Method Summary
All Methods Modifier and Type Method Description String
getClientSideName()
Returns the client side name of the section.
static CellFocusEvent.GridSection
ofClientSideName(String clientSideName)
Returns the matching
CellFocusEvent.GridSection
for the given client side name.static CellFocusEvent.GridSection
valueOf(String name)
Returns the enum constant of this type with the specified name.
static CellFocusEvent.GridSection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADER
public static final CellFocusEvent.GridSection HEADER
Header section.
-
BODY
public static final CellFocusEvent.GridSection BODY
Body section.
-
FOOTER
public static final CellFocusEvent.GridSection FOOTER
Footer section.
-
-
Method Detail
-
values
public static CellFocusEvent.GridSection[] 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 (CellFocusEvent.GridSection c : CellFocusEvent.GridSection.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CellFocusEvent.GridSection 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
-
ofClientSideName
public static CellFocusEvent.GridSection ofClientSideName(String clientSideName)
Returns the matching
CellFocusEvent.GridSection
for the given client side name. An unknown client side name will lead to an exception.Parameters:
clientSideName
- client side name to lookupReturns:
matching section instance
Throws:
IllegalArgumentException
- on an unknown client side section name
-
getClientSideName
public String getClientSideName()
Returns the client side name of the section.
Returns:
client side name
-
-