Constructor and Description |
---|
CheckboxGroupListDataView(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.
|
Constructor and Description |
---|
ComboBoxListDataView(DataCommunicator<T> dataCommunicator,
ComboBox<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.
|
Modifier and Type | Method and Description |
---|---|
protected SerializableComparator<T> |
Grid.createSortingComparator()
Creates a comparator for grid to sort rows.
|
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.
|
Constructor and Description |
---|
GridListDataView(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.
|
Constructor and Description |
---|
ListBoxListDataView(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.
|
Constructor and Description |
---|
RadioButtonGroupListDataView(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.
|
Constructor and Description |
---|
SelectListDataView(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.
|
Modifier and Type | Method and Description |
---|---|
SerializableComparator<T> |
DataCommunicator.getInMemorySorting()
Returns the
Comparator to use with in-memory sorting. |
SerializableComparator<T> |
ListDataProvider.getSortComparator() |
SerializableComparator<T> |
InMemoryDataProvider.getSortComparator()
Gets the current sort comparator of this data provider.
|
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 . |
Modifier and Type | Method and Description |
---|---|
static <T> Optional<SerializableComparator<T>> |
DataViewUtils.getComponentSortComparator(Component component)
Gets the in-memory sort comparator of a given component instance.
|
Modifier and Type | Method and Description |
---|---|
V |
ListDataView.addSortComparator(SerializableComparator<T> sortComparator)
Adds a comparator to the data default sorting.
|
default void |
InMemoryDataProvider.addSortComparator(SerializableComparator<T> comparator)
Adds a comparator to the default sorting for this data provider.
|
AbstractListDataView<T> |
AbstractListDataView.addSortComparator(SerializableComparator<T> sortComparator) |
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. |
V |
ListDataView.setSortComparator(SerializableComparator<T> sortComparator)
Sets the comparator to use as the default sorting.
|
void |
ListDataProvider.setSortComparator(SerializableComparator<T> comparator) |
void |
InMemoryDataProvider.setSortComparator(SerializableComparator<T> comparator)
Sets the comparator to use as the default sorting for this data provider.
|
AbstractListDataView<T> |
AbstractListDataView.setSortComparator(SerializableComparator<T> sortComparator) |
Constructor and Description |
---|
AbstractListDataView(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. |
Modifier and Type | Method and Description |
---|---|
SerializableComparator<T> |
TreeDataProvider.getSortComparator() |
Modifier and Type | Method and Description |
---|---|
void |
HierarchicalDataCommunicator.setInMemorySorting(SerializableComparator<T> comparator) |
void |
TreeDataProvider.setSortComparator(SerializableComparator<T> comparator) |
Copyright © 2021. All rights reserved.