Class ShortcutListenerDelegate

java.lang.Object
com.vaadin.event.Action
com.vaadin.event.ShortcutAction
com.vaadin.event.ShortcutListener
io.jmix.ui.widget.ShortcutListenerDelegate
All Implemented Interfaces:
com.vaadin.event.Action.Listener, Serializable

public final class ShortcutListenerDelegate extends com.vaadin.event.ShortcutListener
Convenient ShortcutListener subclass that accepts lambda handler.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.event.ShortcutAction

    com.vaadin.event.ShortcutAction.KeyCode, com.vaadin.event.ShortcutAction.ModifierKey

    Nested classes/interfaces inherited from class com.vaadin.event.Action

    com.vaadin.event.Action.Container, com.vaadin.event.Action.Handler, com.vaadin.event.Action.Listener, com.vaadin.event.Action.Notifier, com.vaadin.event.Action.ShortcutNotifier
  • Field Summary

    Fields inherited from class com.vaadin.event.ShortcutAction

    SHORTHAND_CHAR_ALT, SHORTHAND_CHAR_CTRL, SHORTHAND_CHAR_SHIFT
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShortcutListenerDelegate(String caption, int keyCode, int[] modifierKeys)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleAction(Object sender, Object target)
     
     

    Methods inherited from class com.vaadin.event.ShortcutAction

    getKeyCode, getModifiers

    Methods inherited from class com.vaadin.event.Action

    getCaption, getIcon, setCaption, setIcon

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShortcutListenerDelegate

      public ShortcutListenerDelegate(String caption, int keyCode, @Nullable int[] modifierKeys)
  • Method Details

    • handleAction

      public void handleAction(Object sender, Object target)
      Specified by:
      handleAction in interface com.vaadin.event.Action.Listener
      Specified by:
      handleAction in class com.vaadin.event.ShortcutListener
    • withHandler

      public ShortcutListenerDelegate withHandler(ShortcutListenerHandler handler)