Interface ShortcutKeyMapper
-
- All Superinterfaces:
java.io.Serializable
public interface ShortcutKeyMapper extends java.io.SerializableProvides mappings between shortcut keycodes and their representation in design attributes. Contains a default framework implementation as a field.- Since:
- 7.4
- Author:
- Vaadin Ltd
-
-
Field Summary
Fields Modifier and Type Field Description static ShortcutKeyMapperDEFAULTAn instance of a default keymapper.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetKeycodeForString(java.lang.String attributePresentation)Gets the key code for a given string.java.lang.StringgetStringForKeycode(int keyCode)Returns a string for a given key code.
-
-
-
Field Detail
-
DEFAULT
static final ShortcutKeyMapper DEFAULT
An instance of a default keymapper.
-
-
Method Detail
-
getKeycodeForString
int getKeycodeForString(java.lang.String attributePresentation)
Gets the key code for a given string.- Parameters:
attributePresentation- String- Returns:
- Key code.
-
getStringForKeycode
java.lang.String getStringForKeycode(int keyCode)
Returns a string for a given key code.- Parameters:
keyCode- Key code.- Returns:
- String.
-
-