Uses of Interface
com.vaadin.flow.function.SerializableComparator
-
Uses of SerializableComparator in com.vaadin.flow.component.checkbox.dataview
Constructor parameters in com.vaadin.flow.component.checkbox.dataview with type arguments of type SerializableComparatorModifierConstructorDescriptionCheckboxGroupListDataView
(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for Checkbox Group and verifies the passed data provider is compatible with this data view implementation.
CheckboxGroupListDataView
(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for Checkbox Group and verifies the passed data provider is compatible with this data view implementation.
-
Uses of SerializableComparator in com.vaadin.flow.component.combobox.dataview
Constructor parameters in com.vaadin.flow.component.combobox.dataview with type arguments of type SerializableComparatorModifierConstructorDescriptionComboBoxListDataView
(DataCommunicator<T> dataCommunicator, ComboBoxBase<?, T, ?> comboBox, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new instance of ComboBox in-memory data view and verifies the passed data provider is compatible with this data view implementation.
-
Uses of SerializableComparator in com.vaadin.flow.component.grid
Methods in com.vaadin.flow.component.grid that return SerializableComparatorModifier and TypeMethodDescriptionprotected SerializableComparator<T>
Grid.createSortingComparator()
Creates a comparator for grid to sort rows.
Grid.Column.getComparator
(SortDirection sortDirection) Gets the comparator to use with in-memory sorting for this column when sorting in the given direction.
-
Uses of SerializableComparator in com.vaadin.flow.component.grid.dataview
Constructor parameters in com.vaadin.flow.component.grid.dataview with type arguments of type SerializableComparatorModifierConstructorDescriptionGridListDataView
(DataCommunicator<T> dataCommunicator, Grid<T> grid, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new instance of Grid in-memory data view and verifies the passed data provider is compatible with this data view implementation.
-
Uses of SerializableComparator in com.vaadin.flow.component.listbox.dataview
Constructor parameters in com.vaadin.flow.component.listbox.dataview with type arguments of type SerializableComparatorModifierConstructorDescriptionListBoxListDataView
(SerializableSupplier<? extends DataProvider<T, ?>> dataProviderSupplier, ListBoxBase listBox, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for ListBox and verifies the passed data provider is compatible with this data view implementation.
-
Uses of SerializableComparator in com.vaadin.flow.component.radiobutton.dataview
Constructor parameters in com.vaadin.flow.component.radiobutton.dataview with type arguments of type SerializableComparatorModifierConstructorDescriptionRadioButtonGroupListDataView
(SerializableSupplier<? extends DataProvider<T, ?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for RadioButtonGroup and verifies the passed data provider is compatible with this data view implementation.
RadioButtonGroupListDataView
(SerializableSupplier<? extends DataProvider<T, ?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for RadioButtonGroup and verifies the passed data provider is compatible with this data view implementation.
-
Uses of SerializableComparator in com.vaadin.flow.component.select.data
Constructor parameters in com.vaadin.flow.component.select.data with type arguments of type SerializableComparatorModifierConstructorDescriptionSelectListDataView
(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, Select<T> select, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for Select and verifies the passed data provider is compatible with this data view implementation.
SelectListDataView
(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, Select<T> select, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for Select and verifies the passed data provider is compatible with this data view implementation.
-
Uses of SerializableComparator in com.vaadin.flow.data.provider
Methods in com.vaadin.flow.data.provider that return SerializableComparatorModifier and TypeMethodDescriptionDataCommunicator.getInMemorySorting()
Returns the
Comparator
to use with in-memory sorting.InMemoryDataProvider.getSortComparator()
Gets the current sort comparator of this data provider.
ListDataProvider.getSortComparator()
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
.Methods in com.vaadin.flow.data.provider that return types with arguments of type SerializableComparatorModifier and TypeMethodDescriptionstatic <T> Optional<SerializableComparator<T>>
DataViewUtils.getComponentSortComparator
(Component component) Gets the in-memory sort comparator of a given component instance.
Methods in com.vaadin.flow.data.provider with parameters of type SerializableComparatorModifier and TypeMethodDescriptionAbstractListDataView.addSortComparator
(SerializableComparator<T> sortComparator) default void
InMemoryDataProvider.addSortComparator
(SerializableComparator<T> comparator) Adds a comparator to the default sorting for this data provider.
ListDataView.addSortComparator
(SerializableComparator<T> sortComparator) Adds a comparator to the data default sorting.
static <T> void
DataViewUtils.setComponentSortComparator
(Component component, SerializableComparator<T> sortComparator) Sets the in-memory sort comparator to a given component instance.
void
DataCommunicator.setInMemorySorting
(SerializableComparator<T> comparator) Sets the
Comparator
to use with in-memory sorting.AbstractListDataView.setSortComparator
(SerializableComparator<T> sortComparator) void
InMemoryDataProvider.setSortComparator
(SerializableComparator<T> comparator) Sets the comparator to use as the default sorting for this data provider.
void
ListDataProvider.setSortComparator
(SerializableComparator<T> comparator) ListDataView.setSortComparator
(SerializableComparator<T> sortComparator) Sets the comparator to use as the default sorting.
Constructor parameters in com.vaadin.flow.data.provider with type arguments of type SerializableComparatorModifierConstructorDescriptionAbstractListDataView
(SerializableSupplier<? extends DataProvider<T, ?>> dataProviderSupplier, Component component, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new instance of
AbstractListDataView
subclass and verifies the passed data provider is compatible with this data view implementation. -
Uses of SerializableComparator in com.vaadin.flow.data.provider.hierarchy
Methods in com.vaadin.flow.data.provider.hierarchy that return SerializableComparatorMethods in com.vaadin.flow.data.provider.hierarchy with parameters of type SerializableComparatorModifier and TypeMethodDescriptionvoid
HierarchicalDataCommunicator.setInMemorySorting
(SerializableComparator<T> comparator) void
TreeDataProvider.setSortComparator
(SerializableComparator<T> comparator)