public class DesignShortcutActionConverter extends Object implements Converter<String,ShortcutAction>
ShortcutActions
.Constructor and Description |
---|
DesignShortcutActionConverter() |
Modifier and Type | Method and 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) |
public Result<ShortcutAction> convertToModel(String value, ValueContext context)
Converter
A converter can optionally use locale to do the conversion.
convertToModel
in interface Converter<String,ShortcutAction>
value
- The value to convert. Can be nullcontext
- The value context for the conversion.public String convertToPresentation(ShortcutAction value, ValueContext context)
Converter
A converter can optionally use locale to do the conversion.
convertToPresentation
in interface Converter<String,ShortcutAction>
value
- The value to convert. Can be nullcontext
- The value context for the conversion.public int getKeycodeForString(String attributePresentation)
public String getStringForKeycode(int keyCode)
Copyright © 2023 Vaadin Ltd. All rights reserved.