| Package | Description |
|---|---|
| com.vaadin.flow.component.crud | |
| com.vaadin.flow.component.grid | |
| com.vaadin.flow.data.provider |
| Modifier and Type | Method and Description |
|---|---|
Map<String,SortDirection> |
CrudFilter.getSortOrders()
Returns the sort orders applied to the grid as a map of column to sort
direction.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<QuerySortOrder> |
SortOrderProvider.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) |
SerializableComparator<T> |
Grid.Column.getComparator(SortDirection sortDirection)
Gets the comparator to use with in-memory sorting for this column
when sorting in the given direction.
|
Stream<QuerySortOrder> |
Grid.Column.getSortOrder(SortDirection direction)
Gets the sort orders to use with back-end sorting for this column
when sorting in the given direction.
|
| Constructor and Description |
|---|
GridSortOrder(Grid.Column<T> column,
SortDirection direction)
Construct sorting information for usage in a
Grid. |
| Modifier and Type | Method and Description |
|---|---|
SortDirection |
SortOrder.getDirection()
Sorting direction.
|
abstract SortDirection |
SortDirection.getOpposite()
Get the sort direction that is the direct opposite to this one.
|
static SortDirection |
SortDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortDirection[] |
SortDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
default <V extends Comparable<? super V>> |
InMemoryDataProvider.addSortOrder(ValueProvider<T,V> valueProvider,
SortDirection sortDirection)
Adds a property and direction to the default sorting for this data
provider.
|
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>> |
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> |
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 given
SortDirection. |
default <V extends Comparable<? super V>> |
InMemoryDataProvider.setSortOrder(ValueProvider<T,V> valueProvider,
SortDirection sortDirection)
Sets the property and direction to use as the default sorting for this
data provider.
|
| Constructor and Description |
|---|
QuerySortOrder(String sorted,
SortDirection direction)
Constructs sorting information for usage in a
Query. |
SortOrder(T sorted,
SortDirection direction)
Constructs a field sorting information.
|
Copyright © 2025. All rights reserved.