| Package | Description |
|---|---|
| com.vaadin.data | |
| com.vaadin.data.converter | |
| com.vaadin.data.validator | |
| com.vaadin.ui.declarative.converters |
| Modifier and Type | Method and Description |
|---|---|
protected ValueContext |
Binder.BindingImpl.createValueContext()
Creates a value context from the current state of the binding and its
field.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
Validator.apply(T value,
ValueContext context)
Validates the given value.
|
String |
ErrorMessageProvider.apply(ValueContext context)
Returns a generated error message for given
ValueContext. |
Result<MODEL> |
Converter.convertToModel(PRESENTATION value,
ValueContext context)
Converts the given value from model type to presentation type.
|
PRESENTATION |
Converter.convertToPresentation(MODEL value,
ValueContext context)
Converts the given value from presentation type to model type.
|
| 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<UUID> |
StringToUuidConverter.convertToModel(String value,
ValueContext context) |
Result<Long> |
StringToLongConverter.convertToModel(String value,
ValueContext context) |
Result<Integer> |
StringToIntegerConverter.convertToModel(String value,
ValueContext context) |
Result<Float> |
StringToFloatConverter.convertToModel(String value,
ValueContext context) |
Result<Double> |
StringToDoubleConverter.convertToModel(String value,
ValueContext context) |
Result<Date> |
StringToDateConverter.convertToModel(String value,
ValueContext context) |
Result<Boolean> |
StringToBooleanConverter.convertToModel(String value,
ValueContext context) |
Result<BigInteger> |
StringToBigIntegerConverter.convertToModel(String value,
ValueContext context) |
Result<BigDecimal> |
StringToBigDecimalConverter.convertToModel(String value,
ValueContext context) |
protected Result<Number> |
AbstractStringToNumberConverter.convertToNumber(String value,
ValueContext context)
Convert the value to a Number using the given locale and
AbstractStringToNumberConverter.getFormat(Locale). |
String |
StringToBooleanConverter.convertToPresentation(Boolean value,
ValueContext context) |
String |
StringToDateConverter.convertToPresentation(Date value,
ValueContext context) |
LocalDate |
LocalDateToDateConverter.convertToPresentation(Date date,
ValueContext context) |
LocalDateTime |
LocalDateTimeToDateConverter.convertToPresentation(Date date,
ValueContext context) |
Date |
DateToSqlDateConverter.convertToPresentation(Date value,
ValueContext context) |
Date |
DateToLongConverter.convertToPresentation(Long value,
ValueContext context) |
String |
AbstractStringToNumberConverter.convertToPresentation(T value,
ValueContext context) |
String |
StringToUuidConverter.convertToPresentation(UUID value,
ValueContext context) |
protected String |
AbstractStringToNumberConverter.getErrorMessage(ValueContext context)
Gets the error message to use when conversion fails.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
BeanValidator.apply(Object value,
ValueContext context)
Validates the given value as if it were the value of the bean property
configured for this validator.
|
ValidationResult |
StringLengthValidator.apply(String value,
ValueContext context) |
ValidationResult |
RegexpValidator.apply(String value,
ValueContext context) |
ValidationResult |
RangeValidator.apply(T value,
ValueContext context)
Returns
Result.ok if the value is within the specified bounds,
Result.error otherwise. |
| Modifier and Type | Method and Description |
|---|---|
Result<TYPE> |
DesignToStringConverter.convertToModel(String value,
ValueContext context) |
Result<TimeZone> |
DesignTimeZoneConverter.convertToModel(String value,
ValueContext context) |
Result<ShortcutAction> |
DesignShortcutActionConverter.convertToModel(String value,
ValueContext context) |
Result<Resource> |
DesignResourceConverter.convertToModel(String value,
ValueContext context) |
Result<Object> |
DesignObjectConverter.convertToModel(String value,
ValueContext context) |
Result<LocalDateTime> |
DesignLocalDateTimeConverter.convertToModel(String value,
ValueContext context) |
Result<LocalDate> |
DesignLocalDateConverter.convertToModel(String value,
ValueContext context) |
Result<T> |
DesignEnumConverter.convertToModel(String value,
ValueContext context) |
Result<Date> |
DesignDateConverter.convertToModel(String value,
ValueContext context) |
String |
DesignDateConverter.convertToPresentation(Date value,
ValueContext context) |
String |
DesignLocalDateTimeConverter.convertToPresentation(LocalDateTime value,
ValueContext context) |
String |
DesignLocalDateConverter.convertToPresentation(LocalDate value,
ValueContext context) |
String |
DesignObjectConverter.convertToPresentation(Object value,
ValueContext context) |
String |
DesignResourceConverter.convertToPresentation(Resource value,
ValueContext context) |
String |
DesignShortcutActionConverter.convertToPresentation(ShortcutAction value,
ValueContext context) |
String |
DesignTimeZoneConverter.convertToPresentation(TimeZone value,
ValueContext context) |
String |
DesignEnumConverter.convertToPresentation(T value,
ValueContext context) |
String |
DesignToStringConverter.convertToPresentation(TYPE value,
ValueContext context) |
Copyright © 2020 Vaadin Ltd. All rights reserved.