public class DesignLocalDateTimeConverter extends Object implements Converter<String,LocalDateTime>
LocalDate converter to be used by DesignAttributeHandler.
Provides ISO-compliant way of storing date and time.| Constructor and Description |
|---|
DesignLocalDateTimeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Result<LocalDateTime> |
convertToModel(String value,
ValueContext context)
Converts the given value from model type to presentation type.
|
String |
convertToPresentation(LocalDateTime value,
ValueContext context)
Converts the given value from presentation type to model type.
|
public Result<LocalDateTime> convertToModel(String value, ValueContext context)
ConverterA converter can optionally use locale to do the conversion.
convertToModel in interface Converter<String,LocalDateTime>value - The value to convert. Can be nullcontext - The value context for the conversion.public String convertToPresentation(LocalDateTime value, ValueContext context)
ConverterA converter can optionally use locale to do the conversion.
convertToPresentation in interface Converter<String,LocalDateTime>value - The value to convert. Can be nullcontext - The value context for the conversion.Copyright © 2021 Vaadin Ltd. All rights reserved.