com.vaadin.flow.component.grid.
Enum Class ColumnRendering
All Implemented Interfaces:
Constants for the rendering mode of columns.
Author:
Vaadin Ltd.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnRendering
fromPropertyValue
(String propertyValue) Converts the property name in String form to the corresponding enum value.
Gets the property value for the rendering mode.
static ColumnRendering
Returns the enum constant of this class with the specified name.
static ColumnRendering[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EAGER
In this mode, all columns are rendered upfront, regardless of their visibility within the viewport.
-
LAZY
In this mode, body cells are rendered only when their corresponding columns are inside the visible viewport.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null -
fromPropertyValue
Converts the property name in String form to the corresponding enum value. Values that cannot be mapped to a direct constant (including
null
) are mapped toEAGER
.Parameters:
propertyValue
- the value for the rendering propertyReturns:
the enum value corresponding to the property value, not
null
-
getPropertyValue
Gets the property value for the rendering mode.
Returns:
the property value
-