public abstract class HotkeyManager extends Object
Constructor and Description |
---|
HotkeyManager() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
_addHotkey(int keyCode,
int modifiers,
HotkeyListener callback) |
abstract boolean |
_removeHotkey(int keyCode,
int modifiers) |
boolean |
addHotkey(char key,
int modifiers,
HotkeyListener callback)
install a hotkey listener.
|
boolean |
addHotkey(String hotkeyType,
HotkeyListener callback)
install a hotkey listener for a global hotkey (capture, abort, ...)
|
boolean |
addHotkey(String key,
int modifiers,
HotkeyListener callback)
install a hotkey listener.
|
abstract void |
cleanUp() |
String |
getHotKeyText(String hotkeyType) |
static HotkeyManager |
getInstance() |
boolean |
removeHotkey(char key,
int modifiers)
remove a hotkey and uninstall a hotkey listener.
|
boolean |
removeHotkey(String hotkeyType)
remove a hotkey by type (not supported yet)
|
boolean |
removeHotkey(String key,
int modifiers)
uninstall a hotkey listener.
|
static void |
reset()
remove all hotkeys
|
public static HotkeyManager getInstance()
public static void reset()
public boolean addHotkey(String hotkeyType, HotkeyListener callback)
hotkeyType
- a type stringcallback
- HotkeyListenerpublic boolean addHotkey(char key, int modifiers, HotkeyListener callback)
key
- key character (class Key)modifiers
- modifiers flagcallback
- HotkeyListenerpublic boolean addHotkey(String key, int modifiers, HotkeyListener callback)
key
- key character (class Key)modifiers
- modifiers flagcallback
- HotkeyListenerpublic boolean removeHotkey(String hotkeyType)
hotkeyType
- capture, abort, ...public boolean removeHotkey(char key, int modifiers)
key
- key character (class Key)modifiers
- modifiers flagpublic boolean removeHotkey(String key, int modifiers)
key
- key string (class Key)modifiers
- modifiers flagpublic abstract boolean _addHotkey(int keyCode, int modifiers, HotkeyListener callback)
public abstract boolean _removeHotkey(int keyCode, int modifiers)
public abstract void cleanUp()
Copyright © 2017. All rights reserved.