public class DesignResourceConverter extends Object implements Converter<String,Resource>
Resource
implementations supported by
DesignAttributeHandler
.Constructor and Description |
---|
DesignResourceConverter() |
Modifier and Type | Method and Description |
---|---|
Result<Resource> |
convertToModel(String value,
ValueContext context)
Converts the given value from model type to presentation type.
|
String |
convertToPresentation(Resource value,
ValueContext context)
Converts the given value from presentation type to model type.
|
public Result<Resource> convertToModel(String value, ValueContext context)
Converter
A converter can optionally use locale to do the conversion.
convertToModel
in interface Converter<String,Resource>
value
- The value to convert. Can be nullcontext
- The value context for the conversion.public String convertToPresentation(Resource value, ValueContext context)
Converter
A converter can optionally use locale to do the conversion.
convertToPresentation
in interface Converter<String,Resource>
value
- The value to convert. Can be nullcontext
- The value context for the conversion.Copyright © 2021 Vaadin Ltd. All rights reserved.