Uses of Interface
com.vaadin.server.SerializableFunction
-
Packages that use SerializableFunction Package Description com.vaadin.data com.vaadin.data.provider com.vaadin.server com.vaadin.ui com.vaadin.ui.components.grid -
-
Uses of SerializableFunction in com.vaadin.data
Subinterfaces of SerializableFunction in com.vaadin.data Modifier and Type Interface Description interface
ErrorMessageProvider
Provider interface for generating localizable error messages usingValueContext
.interface
ValueProvider<SOURCE,TARGET>
A callback interface for providing values from a given source.Methods in com.vaadin.data with parameters of type SerializableFunction Modifier and Type Method Description <S> Result<S>
Result. flatMap(SerializableFunction<R,Result<S>> mapper)
If this Result has a value, applies the given Result-returning function to the value.static <P,M>
Converter<P,M>Converter. from(SerializableFunction<P,Result<M>> toModel, SerializableFunction<M,P> toPresentation)
Constructs a converter from a filter and a function.static <P,M>
Converter<P,M>Converter. from(SerializableFunction<P,M> toModel, SerializableFunction<M,P> toPresentation, SerializableFunction<Exception,String> onError)
Constructs a converter from two functions.<X extends Throwable>
RResult. getOrThrow(SerializableFunction<String,? extends X> exceptionProvider)
Return the value, if the result denotes success, otherwise throw an exception to be created by the provided supplier.default <S> Result<S>
Result. map(SerializableFunction<R,S> mapper)
If this Result has a value, returns a Result of applying the given function to the value.static <R> Result<R>
Result. of(SerializableSupplier<R> supplier, SerializableFunction<Exception,String> onError)
Returns a Result representing the result of invoking the given supplier.<C> void
HasFilterableDataProvider. setDataProvider(DataProvider<T,C> dataProvider, SerializableFunction<F,C> filterConverter)
Sets the data provider and filter converter for this listing.default <NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET>Binder.BindingBuilder. withConverter(SerializableFunction<TARGET,NEWTARGET> toModel, SerializableFunction<NEWTARGET,TARGET> toPresentation)
Maps the binding to another data type using the mapping functions and a possible exception as the error message.default <NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET>Binder.BindingBuilder. withConverter(SerializableFunction<TARGET,NEWTARGET> toModel, SerializableFunction<NEWTARGET,TARGET> toPresentation, String errorMessage)
Maps the binding to another data type using the mapping functions and the given error error message if a value cannot be converted to the new target type. -
Uses of SerializableFunction in com.vaadin.data.provider
Methods in com.vaadin.data.provider with parameters of type SerializableFunction Modifier and Type Method Description default <C> DataProvider<T,C>
DataProvider. withConvertedFilter(SerializableFunction<C,F> filterConverter)
Wraps this data provider to create a data provider that uses a different filter type.<C> DataProvider<T,C>
TreeDataProvider. withConvertedFilter(SerializableFunction<C,SerializablePredicate<T>> filterConverter)
-
Uses of SerializableFunction in com.vaadin.server
Methods in com.vaadin.server that return SerializableFunction Modifier and Type Method Description static <T> SerializableFunction<T,T>
SerializableFunction. identity()
Returns a function that always returns its input argument. -
Uses of SerializableFunction in com.vaadin.ui
Subinterfaces of SerializableFunction in com.vaadin.ui Modifier and Type Interface Description static interface
ComboBox.NewItemProvider<T>
Provider function that adds a new item based on user input when the new items allowed mode is active.interface
DescriptionGenerator<T>
A callback interface for generating description texts for an item.interface
IconGenerator<T>
A callback interface for generating icons for an item.interface
ItemCaptionGenerator<T>
ItemCaptionGenerator
can be used to customize the string shown to the user for an item.interface
StyleGenerator<T>
A callback interface for generating custom CSS class names for items.Classes in com.vaadin.ui that implement SerializableFunction Modifier and Type Class Description protected static class
ComboBox.DeclarativeStyleGenerator<T>
Item style generator class for declarative support.Methods in com.vaadin.ui with parameters of type SerializableFunction Modifier and Type Method Description <C> void
ComboBox. setDataProvider(DataProvider<T,C> dataProvider, SerializableFunction<String,C> filterConverter)
-
Uses of SerializableFunction in com.vaadin.ui.components.grid
Subinterfaces of SerializableFunction in com.vaadin.ui.components.grid Modifier and Type Interface Description interface
DescriptionGenerator<T>
Deprecated.as of 8.2, use the DescriptionGenerator found in package com.vaadin.ui instead.interface
DetailsGenerator<T>
A callback interface for generating details for a particular row in Grid.interface
SortOrderProvider
Generates the sort orders when rows are sorted by a column.Methods in com.vaadin.ui.components.grid that return SerializableFunction Modifier and Type Method Description SerializableFunction<T,String>
GridDragSource. getDragDataGenerator(String type)
Returns the drag data generator function for the given type.Methods in com.vaadin.ui.components.grid with parameters of type SerializableFunction Modifier and Type Method Description void
GridDragSource. setDragDataGenerator(String type, SerializableFunction<T,String> generator)
Sets a generator function for customizing drag data.
-