com.vaadin.ui.declarative.converters.
Class DesignShortcutActionConverter
- java.lang.Object
-
- com.vaadin.ui.declarative.converters.DesignShortcutActionConverter
-
All Implemented Interfaces:
public class DesignShortcutActionConverter extends Object implements Converter<String,ShortcutAction>
Converter for
ShortcutActions
.Since:
7.4
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor Description DesignShortcutActionConverter()
-
Method Summary
All Methods Modifier and Type Method Description Result<ShortcutAction>
convertToModel(String value, ValueContext context)
Converts the given value from model type to presentation type.
String
convertToPresentation(ShortcutAction value, ValueContext context)
Converts the given value from presentation type to model type.
int
getKeycodeForString(String attributePresentation)
String
getStringForKeycode(int keyCode)
-
-
-
Method Detail
-
convertToModel
public Result<ShortcutAction> convertToModel(String value, ValueContext context)
Description copied from interface:
Converter
Converts the given value from model type to presentation type.
A converter can optionally use locale to do the conversion.
Specified by:
convertToModel
in interfaceConverter<String,ShortcutAction>
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(ShortcutAction value, ValueContext context)
Description copied from interface:
Converter
Converts the given value from presentation type to model type.
A converter can optionally use locale to do the conversion.
Specified by:
convertToPresentation
in interfaceConverter<String,ShortcutAction>
Parameters:
value
- The value to convert. Can be nullcontext
- The value context for the conversion.Returns:
The converted value compatible with the source type
-
getKeycodeForString
public int getKeycodeForString(String attributePresentation)
-
getStringForKeycode
public String getStringForKeycode(int keyCode)
-
-