public final class CustomShortcutSet extends java.lang.Object implements ShortcutSet
ShortcutSet interface.| Modifier and Type | Field and Description |
|---|---|
static CustomShortcutSet |
EMPTY |
| Constructor and Description |
|---|
CustomShortcutSet(java.lang.Integer... keyCodes) |
CustomShortcutSet(javax.swing.KeyStroke keyStroke)
Creates
CustomShortcutSet which contains only one
single stroke keyboard shortcut. |
CustomShortcutSet(Shortcut... shortcuts)
Creates
CustomShortcutSet which contains specified keyboard and
mouse shortcuts. |
| Modifier and Type | Method and Description |
|---|---|
static CustomShortcutSet |
fromString(java.lang.String... keyboardShortcuts) |
Shortcut [] |
getShortcuts() |
public static final CustomShortcutSet EMPTY
public CustomShortcutSet(javax.swing.KeyStroke keyStroke)
CustomShortcutSet which contains only one
single stroke keyboard shortcut.public CustomShortcutSet(Shortcut... shortcuts)
CustomShortcutSet which contains specified keyboard and
mouse shortcuts.shortcuts - keyboard shortcutspublic CustomShortcutSet(java.lang.Integer... keyCodes)
public Shortcut [] getShortcuts()
getShortcuts in interface ShortcutSetShortcuts that are in the set.
The method returns an empty array if there are no keyboard Shortcutspublic static CustomShortcutSet fromString(java.lang.String... keyboardShortcuts)