| Package | Description |
|---|---|
| com.vaadin.data | |
| com.vaadin.data.provider | |
| com.vaadin.server | |
| com.vaadin.ui |
| Modifier and Type | Method and Description |
|---|---|
ValueProvider<BEAN,TARGET> |
Binder.Binding.getGetter()
Gets the getter associated with this Binding.
|
ValueProvider<BEAN,TARGET> |
Binder.BindingImpl.getGetter() |
ValueProvider<T,V> |
PropertyDefinition.getGetter()
Gets the value provider that is used for finding the value of this
property for a bean.
|
ValueProvider<T,V> |
BeanPropertySet.NestedBeanPropertyDefinition.getGetter() |
static <T> ValueProvider<T,T> |
ValueProvider.identity()
Returns a value provider that always returns its input argument.
|
| Modifier and Type | Method and Description |
|---|---|
TreeData<T> |
TreeData.addItems(Collection<T> rootItems,
ValueProvider<T,Collection<T>> childItemProvider)
Adds the given items as root items and uses the given value provider to
recursively populate children of the root items.
|
TreeData<T> |
TreeData.addItems(Stream<T> rootItems,
ValueProvider<T,Stream<T>> childItemProvider)
Adds the given items as root items and uses the given value provider to
recursively populate children of the root items.
|
<FIELDVALUE> |
Binder.bind(HasValue<FIELDVALUE> field,
ValueProvider<BEAN,FIELDVALUE> getter,
Setter<BEAN,FIELDVALUE> setter)
Binds a field to a bean property represented by the given getter and
setter pair.
|
Binder.Binding<BEAN,TARGET> |
Binder.BindingBuilder.bind(ValueProvider<BEAN,TARGET> getter,
Setter<BEAN,TARGET> setter)
Completes this binding using the given getter and setter functions
representing a backing bean property.
|
Binder.Binding<BEAN,TARGET> |
Binder.BindingBuilderImpl.bind(ValueProvider<BEAN,TARGET> getter,
Setter<BEAN,TARGET> setter) |
default void |
HasHierarchicalDataProvider.setItems(Collection<T> rootItems,
ValueProvider<T,Collection<T>> childItemProvider)
Sets the root data items of this component provided as a collection and
recursively populates them with child items with the given value
provider.
|
default void |
HasHierarchicalDataProvider.setItems(Stream<T> rootItems,
ValueProvider<T,Stream<T>> childItemProvider)
Sets the root data items of this component provided as a stream and
recursively populates them with child items with the given value
provider.
|
| Constructor and Description |
|---|
BindingImpl(Binder.BindingBuilderImpl<BEAN,FIELDVALUE,TARGET> builder,
ValueProvider<BEAN,TARGET> getter,
Setter<BEAN,TARGET> setter) |
| Modifier and Type | Method and Description |
|---|---|
default <V> void |
InMemoryDataProvider.addFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Adds a filter for an item property.
|
default <V> void |
InMemoryDataProvider.addFilterByValue(ValueProvider<T,V> valueProvider,
V requiredValue)
Adds a filter that requires an item property to have a specific value.
|
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.
|
static <T,V> SerializablePredicate<T> |
InMemoryDataProviderHelpers.createEqualsFilter(ValueProvider<T,V> valueProvider,
V requiredValue)
Creates a predicate that compares equality of the given required value to
the value the given value provider obtains.
|
protected DataKeyMapper<T> |
DataCommunicator.createKeyMapper(ValueProvider<T,Object> identifierGetter)
Creates a
DataKeyMapper to use with this DataCommunicator. |
static <T,V> SerializablePredicate<T> |
InMemoryDataProviderHelpers.createValueProviderFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Creates a new predicate from the given predicate and value provider.
|
default <V,Q> DataProvider<T,Q> |
InMemoryDataProvider.filteringBy(ValueProvider<T,V> valueProvider,
SerializableBiPredicate<V,Q> predicate)
Wraps this data provider to create a new data provider that is filtered
by comparing an item property value to the filter value provided in the
query.
|
static <T> DataProvider<T,String> |
InMemoryDataProviderHelpers.filteringByCaseInsensitiveString(InMemoryDataProvider<T> dataProvider,
ValueProvider<T,String> valueProvider,
SerializableBiPredicate<String,String> predicate,
SerializableSupplier<Locale> localeSupplier)
Wraps a given data provider so that its filter tests the given predicate
with the lower case string provided by the given value provider.
|
default <V> DataProvider<T,V> |
InMemoryDataProvider.filteringByEquals(ValueProvider<T,V> valueProvider)
Wraps this data provider to create a new data provider that is filtered
by testing whether the value of a property is equals to the filter value
provided in the query.
|
static <T,V,Q> DataProvider<T,Q> |
InMemoryDataProviderHelpers.filteringByIgnoreNull(InMemoryDataProvider<T> dataProvider,
ValueProvider<T,V> valueProvider,
SerializableBiPredicate<V,Q> predicate)
Wraps a given data provider so that its filter ignores null items
returned by the given value provider.
|
default DataProvider<T,String> |
InMemoryDataProvider.filteringByPrefix(ValueProvider<T,String> valueProvider)
Wraps this data provider to create a new data provider that is filtered
by a string by checking whether the lower case representation of an item
property value starts with the lower case representation of the filter
value provided in the query.
|
default DataProvider<T,String> |
InMemoryDataProvider.filteringByPrefix(ValueProvider<T,String> valueProvider,
Locale locale)
Wraps this data provider to create a new data provider that is filtered
by a string by checking whether the lower case representation of an item
property value starts with the lower case representation of the filter
value provided in the query.
|
default DataProvider<T,String> |
InMemoryDataProvider.filteringBySubstring(ValueProvider<T,String> valueProvider)
Wraps this data provider to create a new data provider that is filtered
by a string by checking whether the lower case representation of the
filter value provided in the query is a substring of the lower case
representation of an item property value.
|
default DataProvider<T,String> |
InMemoryDataProvider.filteringBySubstring(ValueProvider<T,String> valueProvider,
Locale locale)
Wraps this data provider to create a new data provider that is filtered
by a string by checking whether the lower case representation of the
filter value provided in the query is a substring of the lower case
representation of an item property value.
|
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> void |
InMemoryDataProvider.setFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Sets a filter for an item property.
|
default <V> void |
InMemoryDataProvider.setFilterByValue(ValueProvider<T,V> valueProvider,
V requiredValue)
Sets a filter that requires an item property to have a specific value.
|
void |
DataKeyMapper.setIdentifierGetter(ValueProvider<T,Object> identifierGetter)
Takes identifier getter into use and updates existing mappings.
|
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 |
|---|
CallbackDataProvider(CallbackDataProvider.FetchCallback<T,F> fetchCallBack,
CallbackDataProvider.CountCallback<T,F> countCallback,
ValueProvider<T,Object> identifierGetter)
Constructs a new DataProvider to request data using callbacks for
fetching and counting items in the back end.
|
| Modifier and Type | Method and Description |
|---|---|
void |
KeyMapper.setIdentifierGetter(ValueProvider<V,Object> identifierGetter) |
| Constructor and Description |
|---|
KeyMapper(ValueProvider<V,Object> identifierGetter)
Constructs a new mapper.
|
| Modifier and Type | Method and Description |
|---|---|
ValueProvider<T,V> |
Grid.Column.getValueProvider()
Gets the function used to produce the value for data in this column
based on the row item.
|
| Modifier and Type | Method and Description |
|---|---|
<V> Grid.Column<T,V> |
Grid.addColumn(ValueProvider<T,V> valueProvider)
Adds a new text column to this
Grid with a value provider. |
<V> Grid.Column<T,V> |
Grid.addColumn(ValueProvider<T,V> valueProvider,
AbstractRenderer<? super T,? super V> renderer)
Adds a new column to this
Grid with typed renderer and value
provider. |
<V,P> Grid.Column<T,V> |
Grid.addColumn(ValueProvider<T,V> valueProvider,
ValueProvider<V,P> presentationProvider,
AbstractRenderer<? super T,? super P> renderer)
Adds a new column to this
Grid with value provider, presentation
provider and typed renderer. |
<V,P> Grid.Column<T,V> |
Grid.addColumn(ValueProvider<T,V> valueProvider,
ValueProvider<V,P> presentationProvider,
AbstractRenderer<? super T,? super P> renderer)
Adds a new column to this
Grid with value provider, presentation
provider and typed renderer. |
<V> Grid.Column<T,V> |
Grid.addColumn(ValueProvider<T,V> valueProvider,
ValueProvider<V,String> presentationProvider)
Adds a new column to this
Grid with value provider and
presentation provider. |
<V> Grid.Column<T,V> |
Grid.addColumn(ValueProvider<T,V> valueProvider,
ValueProvider<V,String> presentationProvider)
Adds a new column to this
Grid with value provider and
presentation provider. |
<V extends Component> |
Grid.addComponentColumn(ValueProvider<T,V> componentProvider)
Adds a column that shows components.
|
protected <V,P> Grid.Column<T,V> |
Grid.createColumn(ValueProvider<T,V> valueProvider,
ValueProvider<V,P> presentationProvider,
AbstractRenderer<? super T,? super P> renderer)
Creates a column instance from a value provider, presentation provider
and a renderer.
|
protected <V,P> Grid.Column<T,V> |
Grid.createColumn(ValueProvider<T,V> valueProvider,
ValueProvider<V,P> presentationProvider,
AbstractRenderer<? super T,? super P> renderer)
Creates a column instance from a value provider, presentation provider
and a renderer.
|
<P> Grid.Column<T,V> |
Grid.Column.setRenderer(ValueProvider<V,P> presentationProvider,
Renderer<? super P> renderer)
Sets the Renderer for this Column.
|
| Constructor and Description |
|---|
Column(ValueProvider<T,V> valueProvider,
Renderer<? super V> renderer)
Constructs a new Column configuration with given renderer and value
provider.
|
Column(ValueProvider<T,V> valueProvider,
ValueProvider<V,P> presentationProvider,
Renderer<? super P> renderer)
Constructs a new Column configuration with given renderer and value
provider.
|
Column(ValueProvider<T,V> valueProvider,
ValueProvider<V,P> presentationProvider,
Renderer<? super P> renderer)
Constructs a new Column configuration with given renderer and value
provider.
|
Copyright © 2018 Vaadin Ltd. All rights reserved.