| Package | Description |
|---|---|
| com.vaadin.data | |
| com.vaadin.data.converter | |
| com.vaadin.ui | |
| com.vaadin.ui.declarative.converters |
| Modifier and Type | Method and Description |
|---|---|
Result<MODEL> |
Converter.convertToModel(PRESENTATION value,
ValueContext context)
Converts the given value from model type to presentation type.
|
static <R> Result<R> |
Result.error(String message)
Returns a failure result wrapping the given error message.
|
<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.
|
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.
|
static <R> Result<R> |
Result.ok(R value)
Returns a successful result wrapping the given value.
|
| 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,Result<M>> toModel,
SerializableFunction<M,P> toPresentation)
Constructs a converter from a filter and a function.
|
| Modifier and Type | Method and Description |
|---|---|
Result<Date> |
DateToSqlDateConverter.convertToModel(Date value,
ValueContext context) |
Result<Long> |
DateToLongConverter.convertToModel(Date value,
ValueContext context) |
Result<Date> |
LocalDateTimeToDateConverter.convertToModel(LocalDateTime localDate,
ValueContext context) |
Result<Date> |
LocalDateToDateConverter.convertToModel(LocalDate localDate,
ValueContext context) |
Result<Boolean> |
StringToBooleanConverter.convertToModel(String value,
ValueContext context) |
Result<Double> |
StringToDoubleConverter.convertToModel(String value,
ValueContext context) |
Result<Long> |
StringToLongConverter.convertToModel(String value,
ValueContext context) |
Result<BigInteger> |
StringToBigIntegerConverter.convertToModel(String value,
ValueContext context) |
Result<Integer> |
StringToIntegerConverter.convertToModel(String value,
ValueContext context) |
Result<BigDecimal> |
StringToBigDecimalConverter.convertToModel(String value,
ValueContext context) |
Result<Date> |
StringToDateConverter.convertToModel(String value,
ValueContext context) |
Result<Float> |
StringToFloatConverter.convertToModel(String value,
ValueContext context) |
protected Result<Number> |
AbstractStringToNumberConverter.convertToNumber(String value,
Locale locale)
Convert the value to a Number using the given locale and
AbstractStringToNumberConverter.getFormat(Locale). |
| Modifier and Type | Method and Description |
|---|---|
protected Result<T> |
AbstractDateField.handleUnparsableDateString(String dateString)
This method is called to handle a non-empty date string from the client
if the client could not parse it as a Date.
|
| Modifier and Type | Method and Description |
|---|---|
Result<Resource> |
DesignResourceConverter.convertToModel(String value,
ValueContext context) |
Result<Object> |
DesignObjectConverter.convertToModel(String value,
ValueContext context) |
Result<TimeZone> |
DesignTimeZoneConverter.convertToModel(String value,
ValueContext context) |
Result<Date> |
DesignDateConverter.convertToModel(String value,
ValueContext context) |
Result<LocalDateTime> |
DesignLocalDateTimeConverter.convertToModel(String value,
ValueContext context) |
Result<TYPE> |
DesignToStringConverter.convertToModel(String value,
ValueContext context) |
Result<T> |
DesignEnumConverter.convertToModel(String value,
ValueContext context) |
Result<ShortcutAction> |
DesignShortcutActionConverter.convertToModel(String value,
ValueContext context) |
Result<LocalDate> |
DesignLocalDateConverter.convertToModel(String value,
ValueContext context) |
Copyright © 2017 Vaadin Ltd. All rights reserved.