com.vaadin.ui.declarative.converters.

Interface ShortcutKeyMapper

  • All Superinterfaces:

    Serializable

    public interface ShortcutKeyMapper
    extends 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 Detail

      • DEFAULT

        static final ShortcutKeyMapper DEFAULT

        An instance of a default keymapper.

    • Method Detail

      • getKeycodeForString

        int getKeycodeForString​(String attributePresentation)

        Gets the key code for a given string.

        Parameters:

        attributePresentation - String

        Returns:

        Key code.

      • getStringForKeycode

        String getStringForKeycode​(int keyCode)

        Returns a string for a given key code.

        Parameters:

        keyCode - Key code.

        Returns:

        String.