Uses of Class
com.vaadin.flow.data.provider.SortDirection
-
Packages that use SortDirection Package Description com.vaadin.flow.component.crud com.vaadin.flow.component.grid com.vaadin.flow.data.provider -
-
Uses of SortDirection in com.vaadin.flow.component.crud
Methods in com.vaadin.flow.component.crud that return types with arguments of type SortDirection Modifier and Type Method Description Map<String,SortDirection>CrudFilter. 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 with parameters of type SortDirection Modifier and Type Method 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.Constructors in com.vaadin.flow.component.grid with parameters of type SortDirection Constructor Description GridSortOrder(Grid.Column<T> column, SortDirection direction)Construct sorting information for usage in aGrid. -
Uses of SortDirection in com.vaadin.flow.data.provider
Methods in com.vaadin.flow.data.provider that return SortDirection Modifier and Type Method Description SortDirectionSortOrder. getDirection()Sorting direction.abstract SortDirectionSortDirection. getOpposite()Get the sort direction that is the direct opposite to this one.static SortDirectionSortDirection. 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.Methods in com.vaadin.flow.data.provider with parameters of type SortDirection Modifier and Type Method Description <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 QuerySortOrderQuerySortOrderBuilder. createSortOrder(String by, SortDirection direction)protected abstract TSortOrderBuilder. 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 isDESCENDING.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 givenValueProvider, 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 SortDirection Constructor Description QuerySortOrder(String sorted, SortDirection direction)Constructs sorting information for usage in aQuery.SortOrder(T sorted, SortDirection direction)Constructs a field sorting information.
-