com.vaadin.ui.declarative.converters
Interface ShortcutKeyMapper

All Superinterfaces:
java.io.Serializable

public interface ShortcutKeyMapper
extends java.io.Serializable

Provides 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
static ShortcutKeyMapper DEFAULT
          An instance of a default keymapper.
 
Method Summary
 int getKeycodeForString(java.lang.String attributePresentation)
          Gets the key code for a given string.
 java.lang.String getStringForKeycode(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.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.