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