Modifier and Type | Interface and Description |
---|---|
interface |
ItemLabelGenerator<T>
ItemLabelGenerator can be used to customize the string shown to the
user for an item. |
Constructor and Description |
---|
AbstractSinglePropertyField(String propertyName,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Creates a new field that uses a property value with the given stateless
converters for producing a model value.
|
AbstractSinglePropertyField(String propertyName,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Creates a new field that uses a property value with the given stateless
converters for producing a model value.
|
Constructor and Description |
---|
GeneratedVaadinCheckbox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinCheckbox component with the given
arguments.
|
GeneratedVaadinCheckbox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinCheckbox component with the given
arguments.
|
Constructor and Description |
---|
GeneratedVaadinComboBox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinComboBox component with the given
arguments.
|
GeneratedVaadinComboBox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinComboBox component with the given
arguments.
|
Constructor and Description |
---|
GeneratedVaadinDatePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinDatePicker component with the given
arguments.
|
GeneratedVaadinDatePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinDatePicker component with the given
arguments.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SortOrderProvider
Generates the sort orders when rows are sorted by a column.
|
Constructor and Description |
---|
GeneratedVaadinRadioGroup(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinRadioGroup component with the given
arguments.
|
GeneratedVaadinRadioGroup(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinRadioGroup component with the given
arguments.
|
Constructor and Description |
---|
GeneratedVaadinPasswordField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructor.
|
GeneratedVaadinPasswordField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructor.
|
GeneratedVaadinTextArea(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructor.
|
GeneratedVaadinTextArea(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructor.
|
GeneratedVaadinTextField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructor.
|
GeneratedVaadinTextField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ErrorMessageProvider
Provider interface for generating localizable error messages using
ValueContext . |
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.
|
<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 |
---|---|
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.
|
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.
|
Constructor and Description |
---|
ComponentRenderer(SerializableFunction<SOURCE,COMPONENT> componentFunction)
Creates a new ComponentRenderer that uses the componentFunction to
generate new
Component instances. |
IconRenderer(SerializableFunction<ITEM,? extends Component> iconGenerator)
Creates a new renderer instance using the default
ItemLabelGenerator : String::valueOf and the provided
iconGenerator . |
IconRenderer(SerializableFunction<ITEM,? extends Component> iconGenerator,
ItemLabelGenerator<ITEM> itemLabelGenerator)
Creates a new renderer instance using the provided
iconGenerator
and itemLabelGenerator . |
Modifier and Type | Interface and Description |
---|---|
interface |
ValueProvider<SOURCE,TARGET>
A callback interface for providing values from a given source.
|
Modifier and Type | Method and Description |
---|---|
static <T> SerializableFunction<T,T> |
SerializableFunction.identity()
Returns a function that always returns its input argument.
|
Constructor and Description |
---|
ReflectionCache(SerializableFunction<Class<C>,T> valueProvider)
Creates a new reflection cache with the given value provider.
|
Modifier and Type | Interface and Description |
---|---|
interface |
PushConnectionFactory
Factory that produces instances of
PushConnection . |
Copyright © 2018. All rights reserved.