public abstract class HotkeyManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static HotkeyManager |
_instance |
Constructor and Description |
---|
HotkeyManager() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
_addHotkey(int keyCode,
int modifiers,
HotkeyListener listener) |
abstract boolean |
_removeHotkey(int keyCode,
int modifiers) |
boolean |
addHotkey(char key,
int modifiers,
HotkeyListener listener)
install a hotkey listener.
|
boolean |
addHotkey(java.lang.String key,
int modifiers,
HotkeyListener listener)
install a hotkey listener.
|
abstract void |
cleanUp() |
static HotkeyManager |
getInstance() |
protected java.lang.String |
getKeyCodeText(int key) |
protected java.lang.String |
getKeyModifierText(int modifiers) |
boolean |
removeHotkey(char key,
int modifiers)
uninstall a hotkey listener.
|
boolean |
removeHotkey(java.lang.String key,
int modifiers)
uninstall a hotkey listener.
|
protected static HotkeyManager _instance
protected java.lang.String getKeyCodeText(int key)
protected java.lang.String getKeyModifierText(int modifiers)
public static HotkeyManager getInstance()
public boolean addHotkey(java.lang.String key, int modifiers, HotkeyListener listener)
public boolean addHotkey(char key, int modifiers, HotkeyListener listener)
public boolean removeHotkey(java.lang.String key, int modifiers)
public boolean removeHotkey(char key, int modifiers)
public abstract boolean _addHotkey(int keyCode, int modifiers, HotkeyListener listener)
public abstract boolean _removeHotkey(int keyCode, int modifiers)
public abstract void cleanUp()