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