Class FButton.ClickShortcut

All Implemented Interfaces:
Action.Listener, Serializable
Enclosing class:
FButton

public static class FButton.ClickShortcut extends ShortcutListener
A ShortcutListener specifically made to define a keyboard shortcut that invokes a click on the given button.
See Also:
  • Field Details

    • button

      protected FButton button
  • Constructor Details

    • ClickShortcut

      public ClickShortcut(FButton 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(FButton 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(FButton 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
  • Method Details