Class DesignTimeZoneConverter
- java.lang.Object
-
- com.vaadin.ui.declarative.converters.DesignTimeZoneConverter
-
- All Implemented Interfaces:
Converter<String,TimeZone>,Serializable
public class DesignTimeZoneConverter extends Object implements Converter<String,TimeZone>
Utility class forDesignAttributeHandlerthat deals with converting various TimeZones to string.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DesignTimeZoneConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result<TimeZone>convertToModel(String value, ValueContext context)Converts the given value from model type to presentation type.StringconvertToPresentation(TimeZone value, ValueContext context)Converts the given value from presentation type to model type.
-
-
-
Method Detail
-
convertToModel
public Result<TimeZone> convertToModel(String value, ValueContext context)
Description copied from interface:ConverterConverts the given value from model type to presentation type.A converter can optionally use locale to do the conversion.
- Specified by:
convertToModelin interfaceConverter<String,TimeZone>- Parameters:
value- The value to convert. Can be nullcontext- The value context for the conversion.- Returns:
- The converted value compatible with the source type
-
convertToPresentation
public String convertToPresentation(TimeZone value, ValueContext context)
Description copied from interface:ConverterConverts the given value from presentation type to model type.A converter can optionally use locale to do the conversion.
- Specified by:
convertToPresentationin interfaceConverter<String,TimeZone>- Parameters:
value- The value to convert. Can be nullcontext- The value context for the conversion.- Returns:
- The converted value compatible with the source type
-
-