| Package | Description |
|---|---|
| com.vaadin.data | |
| com.vaadin.data.converter | |
| com.vaadin.ui.declarative | |
| com.vaadin.ui.declarative.converters |
| Modifier and Type | Method and Description |
|---|---|
default <T> Converter<PRESENTATION,T> |
Converter.chain(Converter<MODEL,T> other)
Returns a converter that chains together this converter with the given
type-compatible converter.
|
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 <T> Converter<T,T> |
Converter.identity()
Returns a converter that returns its input as-is in both directions.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> Converter<PRESENTATION,T> |
Converter.chain(Converter<MODEL,T> other)
Returns a converter that chains together this converter with the given
type-compatible converter.
|
protected <FIELDVALUE,TARGET> |
Binder.createBinding(HasValue<FIELDVALUE> field,
Converter<FIELDVALUE,TARGET> converter,
BindingValidationStatusHandler handler)
Creates a new binding with the given field.
|
protected <FIELDVALUE,TARGET> |
Binder.doCreateBinding(HasValue<FIELDVALUE> field,
Converter<FIELDVALUE,TARGET> converter,
BindingValidationStatusHandler handler) |
<NEWTARGET> |
Binder.BindingBuilder.withConverter(Converter<TARGET,NEWTARGET> converter)
Maps the binding to another data type using the given
Converter. |
<NEWTARGET> |
Binder.BindingBuilderImpl.withConverter(Converter<TARGET,NEWTARGET> converter) |
protected <NEWTARGET> |
Binder.BindingBuilderImpl.withConverter(Converter<TARGET,NEWTARGET> converter,
boolean resetNullRepresentation)
Implements
Binder.BindingBuilderImpl.withConverter(Converter) method with additional
possibility to disable (reset) default null representation converter. |
| Constructor and Description |
|---|
BindingBuilderImpl(Binder<BEAN> binder,
HasValue<FIELDVALUE> field,
Converter<FIELDVALUE,TARGET> converterValidatorChain,
BindingValidationStatusHandler statusHandler)
Creates a new binding builder associated with the given field.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractStringToNumberConverter<T extends Number>
A converter that converts from the number type T to
String and back. |
class |
DateToLongConverter
|
class |
DateToSqlDateConverter
|
class |
LocalDateTimeToDateConverter
A converter that converts between
LocalDateTime and
Date. |
class |
LocalDateToDateConverter
A converter that converts between
LocalDate and
Date. |
class |
StringToBigDecimalConverter
A converter that converts from
String to BigDecimal and back. |
class |
StringToBigIntegerConverter
A converter that converts from
String to BigInteger and back. |
class |
StringToBooleanConverter
|
class |
StringToDateConverter
|
class |
StringToDoubleConverter
|
class |
StringToFloatConverter
|
class |
StringToIntegerConverter
|
class |
StringToLongConverter
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> Converter<String,T> |
DesignFormatter.findConverterFor(Class<? extends T> sourceType)
Finds a converter for a given type.
|
protected <T> Converter<String,T> |
DesignFormatter.findConverterFor(Class<? extends T> sourceType,
boolean strict)
Finds a converter for a given type.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
DesignFormatter.addConverter(Class<?> type,
Converter<String,?> converter)
Adds a converter for a given type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DesignDateConverter
A date converter to be used by
DesignAttributeHandler. |
class |
DesignEnumConverter<T extends Enum>
An converter for Enum to/from String for
DesignAttributeHandler to
use internally. |
class |
DesignLocalDateConverter
A
LocalDate converter to be used by DesignAttributeHandler. |
class |
DesignLocalDateTimeConverter
A
LocalDate converter to be used by DesignAttributeHandler. |
class |
DesignObjectConverter
An converter for Object to/from String for
DesignAttributeHandler to
use internally. |
class |
DesignResourceConverter
A converter for
Resource implementations supported by
DesignAttributeHandler. |
class |
DesignShortcutActionConverter
Converter for
ShortcutActions. |
class |
DesignTimeZoneConverter
Utility class for
DesignAttributeHandler that deals with converting
various TimeZones to string. |
class |
DesignToStringConverter<TYPE>
Utility class for
DesignAttributeHandler that deals with converting
various types to string. |
Copyright © 2018 Vaadin Ltd. All rights reserved.