com.vaadin.ui.

Class Button.ClickShortcut

    • Field Detail

      • button

        protected Button button
    • Constructor Detail

      • ClickShortcut

        public ClickShortcut​(Button button,
                             String shorthandCaption)

        Creates a keyboard shortcut for clicking the given button using the shorthand notation defined in ShortcutAction.

        Parameters:

        button - to be clicked when the shortcut is invoked

        shorthandCaption - the caption with shortcut keycode and modifiers indicated

      • ClickShortcut

        public ClickShortcut​(Button button,
                             int keyCode,
                             int... modifiers)

        Creates a keyboard shortcut for clicking the given button using the given ShortcutAction.KeyCode and ShortcutAction.ModifierKeys.

        Parameters:

        button - to be clicked when the shortcut is invoked

        keyCode - KeyCode to react to

        modifiers - optional modifiers for shortcut

      • ClickShortcut

        public ClickShortcut​(Button button,
                             int keyCode)

        Creates a keyboard shortcut for clicking the given button using the given ShortcutAction.KeyCode.

        Parameters:

        button - to be clicked when the shortcut is invoked

        keyCode - KeyCode to react to