Uses of Enum Class
com.vaadin.flow.data.provider.SortDirection
-
Uses of SortDirection in com.vaadin.flow.component.crud
Methods in com.vaadin.flow.component.crud that return types with arguments of type SortDirectionModifier and TypeMethodDescriptionCrudFilter.getSortOrders()
Returns the sort orders applied to the grid as a map of column to sort direction.
-
Uses of SortDirection in com.vaadin.flow.component.grid
Methods in com.vaadin.flow.component.grid that return SortDirectionModifier and TypeMethodDescriptionGridTester.getSortDirection
(int column) Gets the current sort direction for column at the given index.
GridTester.getSortDirection
(String property) Gets the current sort direction for column corresponding to the at the given property.
Methods in com.vaadin.flow.component.grid with parameters of type SortDirectionModifier and TypeMethodDescriptionSortOrderProvider.apply
(SortDirection sortDirection) Generates the sort orders when rows are sorted by a column.
protected GridSortOrder<T>
GridSortOrderBuilder.createSortOrder
(Grid.Column<T> by, SortDirection direction) Grid.Column.getComparator
(SortDirection sortDirection) Gets the comparator to use with in-memory sorting for this column when sorting in the given direction.
Grid.Column.getSortOrder
(SortDirection direction) Gets the sort orders to use with back-end sorting for this column when sorting in the given direction.
void
GridTester.sortByColumn
(int column, SortDirection direction) Sorts the grid by the given column and sort direction, as if the column header is pressed in the browser until the requested direction is reached.
void
GridTester.sortByColumn
(String property, SortDirection direction) Sorts the grid by the given column and sort direction, as if the column header is pressed in the browser until the requested direction is reached.
Constructors in com.vaadin.flow.component.grid with parameters of type SortDirectionModifierConstructorDescriptionGridSortOrder
(Grid.Column<T> column, SortDirection direction) Construct sorting information for usage in a
Grid
. -
Uses of SortDirection in com.vaadin.flow.data.provider
Methods in com.vaadin.flow.data.provider that return SortDirectionModifier and TypeMethodDescriptionSortOrder.getDirection()
Sorting direction.
SortDirection.getOpposite()
Get the sort direction that is the direct opposite to this one.
static SortDirection
Returns the enum constant of this class with the specified name.
static SortDirection[]
SortDirection.values()
Returns an array containing the constants of this enum class, in the order they are declared.
Methods in com.vaadin.flow.data.provider with parameters of type SortDirectionModifier and TypeMethodDescription<V1 extends Comparable<? super V1>>
AbstractListDataView<T>AbstractListDataView.addSortOrder
(ValueProvider<T, V1> valueProvider, SortDirection sortDirection) default <V extends Comparable<? super V>>
voidInMemoryDataProvider.addSortOrder
(ValueProvider<T, V> valueProvider, SortDirection sortDirection) Adds a property and direction to the default sorting for this data provider.
<V1 extends Comparable<? super V1>>
VListDataView.addSortOrder
(ValueProvider<T, V1> valueProvider, SortDirection sortDirection) Adds a property and direction to the default sorting.
protected QuerySortOrder
QuerySortOrderBuilder.createSortOrder
(String by, SortDirection direction) protected abstract T
SortOrderBuilder.createSortOrder
(V by, SortDirection direction) Creates a sort order object with the given parameters.
static <V extends Comparable<? super V>>
Comparator<V>InMemoryDataProviderHelpers.getNaturalSortComparator
(SortDirection sortDirection) Gets the natural order comparator for the type argument, or the natural order comparator reversed if the given sorting direction is
DESCENDING
.static <V extends Comparable<? super V>,
T>
SerializableComparator<T>InMemoryDataProviderHelpers.propertyComparator
(ValueProvider<T, V> valueProvider, SortDirection sortDirection) Creates a comparator for the return type of the given
ValueProvider
, sorted in the direction specified by the givenSortDirection
.<V1 extends Comparable<? super V1>>
AbstractListDataView<T>AbstractListDataView.setSortOrder
(ValueProvider<T, V1> valueProvider, SortDirection sortDirection) default <V extends Comparable<? super V>>
voidInMemoryDataProvider.setSortOrder
(ValueProvider<T, V> valueProvider, SortDirection sortDirection) Sets the property and direction to use as the default sorting for this data provider.
<V1 extends Comparable<? super V1>>
VListDataView.setSortOrder
(ValueProvider<T, V1> valueProvider, SortDirection sortDirection) Sets the property and direction to use as the default sorting.
Constructors in com.vaadin.flow.data.provider with parameters of type SortDirectionModifierConstructorDescriptionQuerySortOrder
(String sorted, SortDirection direction) Constructs sorting information for usage in a
Query
.SortOrder
(T sorted, SortDirection direction) Constructs a field sorting information.