Class DesignShortcutActionConverter
- java.lang.Object
-
- com.vaadin.ui.declarative.converters.DesignShortcutActionConverter
-
- All Implemented Interfaces:
Converter<java.lang.String,ShortcutAction>,java.io.Serializable
public class DesignShortcutActionConverter extends java.lang.Object implements Converter<java.lang.String,ShortcutAction>
Converter forShortcutActions.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DesignShortcutActionConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result<ShortcutAction>convertToModel(java.lang.String value, ValueContext context)Converts the given value from model type to presentation type.java.lang.StringconvertToPresentation(ShortcutAction value, ValueContext context)Converts the given value from presentation type to model type.intgetKeycodeForString(java.lang.String attributePresentation)java.lang.StringgetStringForKeycode(int keyCode)
-
-
-
Method Detail
-
convertToModel
public Result<ShortcutAction> convertToModel(java.lang.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<java.lang.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 java.lang.String convertToPresentation(ShortcutAction 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<java.lang.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(java.lang.String attributePresentation)
-
getStringForKeycode
public java.lang.String getStringForKeycode(int keyCode)
-
-