public static class Component.ShortcutAction
extends java.lang.Object
| Constructor and Description |
|---|
ShortcutAction(KeyCombination shortcut,
java.util.function.Consumer<Component.ShortcutTriggeredEvent> handler) |
ShortcutAction(java.lang.String shortcut,
java.util.function.Consumer<Component.ShortcutTriggeredEvent> handler) |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Consumer<Component.ShortcutTriggeredEvent> |
getHandler() |
KeyCombination |
getShortcutCombination() |
public ShortcutAction(java.lang.String shortcut,
java.util.function.Consumer<Component.ShortcutTriggeredEvent> handler)
public ShortcutAction(KeyCombination shortcut, java.util.function.Consumer<Component.ShortcutTriggeredEvent> handler)
public KeyCombination getShortcutCombination()
public java.util.function.Consumer<Component.ShortcutTriggeredEvent> getHandler()