public class DesignTimeZoneConverter extends Object implements Converter<String,TimeZone>
DesignAttributeHandler
that deals with converting
various TimeZones to string.Constructor and Description |
---|
DesignTimeZoneConverter() |
Modifier and Type | Method and Description |
---|---|
Result<TimeZone> |
convertToModel(String value,
ValueContext context)
Converts the given value from model type to presentation type.
|
String |
convertToPresentation(TimeZone value,
ValueContext context)
Converts the given value from presentation type to model type.
|
public Result<TimeZone> convertToModel(String value, ValueContext context)
Converter
A converter can optionally use locale to do the conversion.
convertToModel
in interface Converter<String,TimeZone>
value
- The value to convert. Can be nullcontext
- The value context for the conversion.public String convertToPresentation(TimeZone value, ValueContext context)
Converter
A converter can optionally use locale to do the conversion.
convertToPresentation
in interface Converter<String,TimeZone>
value
- The value to convert. Can be nullcontext
- The value context for the conversion.Copyright © 2020 Vaadin Ltd. All rights reserved.