| Package | Description |
|---|---|
| com.vaadin.data | |
| com.vaadin.data.provider | |
| com.vaadin.server | |
| com.vaadin.ui |
| Modifier and Type | Method and Description |
|---|---|
ValueProvider<T,V> |
PropertyDefinition.getGetter()
Gets the value provider that is used for finding the value of this
property for a bean.
|
static <T> ValueProvider<T,T> |
ValueProvider.identity()
Returns a value provider that always returns its input argument.
|
| Modifier and Type | Method and Description |
|---|---|
<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) |
| Modifier and Type | Method and Description |
|---|---|
<V> void |
ListDataProvider.addFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Adds a filter for an item property.
|
<V> void |
ListDataProvider.addFilterByValue(ValueProvider<T,V> valueProvider,
V requiredValue)
Adds a filter that requires an item property to have a specific value.
|
<V extends Comparable<? super V>> |
ListDataProvider.addSortOrder(ValueProvider<T,V> valueProvider,
SortDirection sortDirection)
Adds a property and direction to the default sorting for this data
provider.
|
<V,Q> DataProvider<T,Q> |
ListDataProvider.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.
|
<V> DataProvider<T,V> |
ListDataProvider.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.
|
DataProvider<T,String> |
ListDataProvider.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.
|
DataProvider<T,String> |
ListDataProvider.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.
|
DataProvider<T,String> |
ListDataProvider.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.
|
DataProvider<T,String> |
ListDataProvider.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.
|
void |
DataKeyMapper.refresh(T dataObject,
ValueProvider<T,Object> identifierGetter)
Updates any existing mappings of given data object.
|
<V> void |
ListDataProvider.setFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Sets a filter for an item property.
|
<V> void |
ListDataProvider.setFilterByValue(ValueProvider<T,V> valueProvider,
V requiredValue)
Sets a filter that requires an item property to have a specific value.
|
<V extends Comparable<? super V>> |
ListDataProvider.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.refresh(V dataObject,
ValueProvider<V,Object> identifierGetter) |
| 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. |
protected <V> Grid.Column<T,V> |
Grid.createColumn(ValueProvider<T,V> valueProvider,
AbstractRenderer<? super T,? super V> renderer)
Creates a column instance from a value provider and a renderer.
|
| Constructor and Description |
|---|
Column(ValueProvider<T,V> valueProvider,
Renderer<? super V> renderer)
Constructs a new Column configuration with given renderer and value
provider.
|
Copyright © 2017 Vaadin Ltd. All rights reserved.