Uses of Interface
com.vaadin.data.ValueProvider
-
Packages that use ValueProvider Package Description com.vaadin.data com.vaadin.data.provider com.vaadin.server com.vaadin.ui -
-
Uses of ValueProvider in com.vaadin.data
Methods in com.vaadin.data that return ValueProvider Modifier and Type Method Description ValueProvider<T,V>BeanPropertySet.NestedBeanPropertyDefinition. getGetter()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.static <T> ValueProvider<T,T>ValueProvider. identity()Returns a value provider that always returns its input argument.Methods in com.vaadin.data with parameters of type ValueProvider Modifier and Type Method 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.Binding<BEAN,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 voidHasHierarchicalDataProvider. 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 voidHasHierarchicalDataProvider. 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.Constructors in com.vaadin.data with parameters of type ValueProvider Constructor Description BindingImpl(Binder.BindingBuilderImpl<BEAN,FIELDVALUE,TARGET> builder, ValueProvider<BEAN,TARGET> getter, Setter<BEAN,TARGET> setter) -
Uses of ValueProvider in com.vaadin.data.provider
Methods in com.vaadin.data.provider with parameters of type ValueProvider Modifier and Type Method Description default <V> voidInMemoryDataProvider. addFilter(ValueProvider<T,V> valueProvider, SerializablePredicate<V> valueFilter)Adds a filter for an item property.default <V> voidInMemoryDataProvider. 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>>
voidInMemoryDataProvider. 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 aDataKeyMapperto 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>
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.default <V> voidInMemoryDataProvider. setFilter(ValueProvider<T,V> valueProvider, SerializablePredicate<V> valueFilter)Sets a filter for an item property.default <V> voidInMemoryDataProvider. setFilterByValue(ValueProvider<T,V> valueProvider, V requiredValue)Sets a filter that requires an item property to have a specific value.voidDataKeyMapper. setIdentifierGetter(ValueProvider<T,Object> identifierGetter)Takes identifier getter into use and updates existing mappings.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.Constructors in com.vaadin.data.provider with parameters of type ValueProvider Constructor 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. -
Uses of ValueProvider in com.vaadin.server
Methods in com.vaadin.server with parameters of type ValueProvider Modifier and Type Method Description voidKeyMapper. setIdentifierGetter(ValueProvider<V,Object> identifierGetter)Constructors in com.vaadin.server with parameters of type ValueProvider Constructor Description KeyMapper(ValueProvider<V,Object> identifierGetter)Constructs a new mapper. -
Uses of ValueProvider in com.vaadin.ui
Methods in com.vaadin.ui that return ValueProvider Modifier and Type Method Description ValueProvider<V,?>Grid.Column. getPresentationProvider()Gets the function to get presentations from the value of data in this column, based on the row item.ValueProvider<T,V>Grid.Column. getValueProvider()Gets the function used to produce the value for data in this column based on the row item.Methods in com.vaadin.ui with parameters of type ValueProvider Modifier and Type Method Description <V> Grid.Column<T,V>Grid. addColumn(ValueProvider<T,V> valueProvider)Adds a new text column to thisGridwith a value provider.<V> Grid.Column<T,V>Grid. addColumn(ValueProvider<T,V> valueProvider, ValueProvider<V,String> presentationProvider)Adds a new column to thisGridwith value provider and presentation 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 thisGridwith value provider, presentation provider and typed renderer.<V> Grid.Column<T,V>Grid. addColumn(ValueProvider<T,V> valueProvider, AbstractRenderer<? super T,? super V> renderer)Adds a new column to thisGridwith typed renderer and value provider.<V extends Component>
Grid.Column<T,V>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.<P> Grid.Column<T,V>Grid.Column. setRenderer(ValueProvider<V,P> presentationProvider, Renderer<? super P> renderer)Sets the Renderer for this Column.Constructors in com.vaadin.ui with parameters of type ValueProvider Constructor Description 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, Grid.Column.NestedNullBehavior nestedNullBehavior)Constructs a new Column configuration with given renderer and value provider.Column(ValueProvider<T,V> valueProvider, Renderer<? super V> renderer)Constructs a new Column configuration with given renderer and value provider.
-