| Package | Description |
|---|---|
| com.vaadin.data | |
| com.vaadin.data.provider | |
| com.vaadin.server | |
| com.vaadin.ui | |
| com.vaadin.ui.components.grid |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ErrorMessageProvider
Provider interface for generating localizable error messages using
ValueContext. |
interface |
ValueProvider<SOURCE,TARGET>
A callback interface for providing values from a given source.
|
| Modifier and Type | Method and 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,M> toModel,
SerializableFunction<M,P> toPresentation,
SerializableFunction<Exception,String> onError)
Constructs a converter from two functions.
|
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.
|
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.
|
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,Result<M>> toModel,
SerializableFunction<M,P> toPresentation)
Constructs a converter from a filter and a function.
|
<X extends Throwable> |
Result.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.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.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.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.
|
default <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.
|
| Modifier and Type | Method and 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) |
| Modifier and Type | Method and Description |
|---|---|
static <T> SerializableFunction<T,T> |
SerializableFunction.identity()
Returns a function that always returns its input argument.
|
| Modifier and Type | Interface and 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.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ComboBox.DeclarativeStyleGenerator<T>
Item style generator class for declarative support.
|
| Modifier and Type | Method and Description |
|---|---|
<C> void |
ComboBox.setDataProvider(DataProvider<T,C> dataProvider,
SerializableFunction<String,C> filterConverter) |
| Modifier and Type | Interface and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
SerializableFunction<T,String> |
GridDragSource.getDragDataGenerator(String type)
Returns the drag data generator function for the given type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GridDragSource.setDragDataGenerator(String type,
SerializableFunction<T,String> generator)
Sets a generator function for customizing drag data.
|
Copyright © 2019 Vaadin Ltd. All rights reserved.