|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GlobalShortcutService
This global shortcut service permits to register listeners for global shortcut (i.e. keystroke even if application is not foreground).
| Field Summary | |
|---|---|
static int |
SPECIAL_KEY_MODIFIERS
Value for AWTKeyStroke's modifiers that specify a "special" key shortcut. |
| Method Summary | |
|---|---|
AWTKeyStroke |
getSpecialKey()
Get special keystroke or null if not supported or user cancels. |
void |
registerShortcut(GlobalShortcutListener l,
AWTKeyStroke keyStroke)
Registers an action to execute when the keystroke is typed. |
void |
reloadGlobalShortcuts()
Reload global shortcuts. |
void |
setEnable(boolean enable)
Enable or not global shortcut. |
void |
setSpecialKeyDetection(boolean enable,
GlobalShortcutListener callback)
Enable or disable special key detection. |
void |
unregisterShortcut(GlobalShortcutListener l,
AWTKeyStroke keyStroke)
Unregisters an action to execute when the keystroke is typed. |
| Field Detail |
|---|
static final int SPECIAL_KEY_MODIFIERS
| Method Detail |
|---|
void registerShortcut(GlobalShortcutListener l,
AWTKeyStroke keyStroke)
l - listener to notify when keystroke is typedkeyStroke - keystroke that will trigger the action
void unregisterShortcut(GlobalShortcutListener l,
AWTKeyStroke keyStroke)
l - listener to removekeyStroke - keystroke that will trigger the action
void setSpecialKeyDetection(boolean enable,
GlobalShortcutListener callback)
enable - enable or not special key detection.callback - object to be notifiedAWTKeyStroke getSpecialKey()
void reloadGlobalShortcuts()
void setEnable(boolean enable)
enable - enable or not global shortcut
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||