com.vaadin.flow.component.grid.
Enum Grid.MultiSortPriority
- java.lang.Object
-
- java.lang.Enum<Grid.MultiSortPriority>
-
- com.vaadin.flow.component.grid.Grid.MultiSortPriority
-
All Implemented Interfaces:
public static enum Grid.MultiSortPriority extends Enum<Grid.MultiSortPriority>
Multi-sort priority (visually indicated by numbers in column headers) controls how columns are added to the sort order, when a column becomes sorted, or the sort direction of a column is changed.
Use
Grid.setMultiSort(boolean, MultiSortPriority)
to customize the multi-sort priority of an individual grid.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPEND
Whenever an unsorted column is sorted, it gets added at the end of the sort order, after all the previously sorted columns.
PREPEND
Whenever an unsorted column is sorted, or the sort direction of a column is changed, that column gets sort priority 1, and all the other sorted columns are updated accordingly.
-
Method Summary
All Methods Modifier and Type Method Description static Grid.MultiSortPriority
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static Grid.MultiSortPriority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPEND
public static final Grid.MultiSortPriority APPEND
Whenever an unsorted column is sorted, it gets added at the end of the sort order, after all the previously sorted columns. When the sort direction of a column is changed by the user, the priority for all the sorted columns remains unchanged.
-
PREPEND
public static final Grid.MultiSortPriority PREPEND
Whenever an unsorted column is sorted, or the sort direction of a column is changed, that column gets sort priority 1, and all the other sorted columns are updated accordingly. This is the default behavior of the component.
-
-
Method Detail
-
values
public static Grid.MultiSortPriority[] 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 (Grid.MultiSortPriority c : Grid.MultiSortPriority.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Grid.MultiSortPriority 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
-
-