|
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 | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.globalshortcut.GlobalShortcutServiceImpl
public class GlobalShortcutServiceImpl
This global shortcut service permits to register listeners for global shortcut (i.e. keystroke even if application is not foreground).
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.globalshortcut.GlobalShortcutService |
|---|
SPECIAL_KEY_MODIFIERS |
| Fields inherited from interface net.java.sip.communicator.impl.globalshortcut.NativeKeyboardHookDelegate |
|---|
MODIFIERS_ALT, MODIFIERS_CTRL, MODIFIERS_LOGO, MODIFIERS_SHIFT |
| Constructor Summary | |
|---|---|
GlobalShortcutServiceImpl()
Initializes the GlobalShortcutServiceImpl. |
|
| Method Summary | |
|---|---|
CallShortcut |
getCallShortcut()
Returns CallShortcut object. |
AWTKeyStroke |
getSpecialKey()
Get special keystroke or null if not supported or user cancels. |
UIShortcut |
getUIShortcut()
Returns UIShortcut object. |
void |
receiveKey(int keycode,
int modifiers)
Receive a key press event. |
void |
registerShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke)
Registers an action to execute when the keystroke is typed. |
void |
registerShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke,
boolean add)
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 |
start()
Start the service. |
void |
stop()
Stop the service. |
void |
test()
Simple test. |
void |
unregisterShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke)
Unregisters an action to execute when the keystroke is typed. |
void |
unregisterShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke,
boolean remove)
Unregisters an action to execute when the keystroke is typed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalShortcutServiceImpl()
| Method Detail |
|---|
public void registerShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke)
registerShortcut in interface GlobalShortcutServicelistener - listener to notify when keystroke is typedkeyStroke - keystroke that will trigger the action
public void registerShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke,
boolean add)
listener - listener to notify when keystroke is typedkeyStroke - keystroke that will trigger the actionadd - add the listener/keystrokes to map
public void unregisterShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke)
unregisterShortcut in interface GlobalShortcutServicelistener - listener to removekeyStroke - keystroke that will trigger the action
public void unregisterShortcut(GlobalShortcutListener listener,
AWTKeyStroke keyStroke,
boolean remove)
listener - listener to removekeyStroke - keystroke that will trigger the actionremove - remove or not entry in the mappublic void start()
public void stop()
public void receiveKey(int keycode,
int modifiers)
receiveKey in interface NativeKeyboardHookDelegatekeycode - keycode receivedmodifiers - modifiers received (ALT or CTRL + letter, ...)public void reloadGlobalShortcuts()
reloadGlobalShortcuts in interface GlobalShortcutServicepublic CallShortcut getCallShortcut()
public UIShortcut getUIShortcut()
public void setEnable(boolean enable)
setEnable in interface GlobalShortcutServiceenable - enable or not global shortcut
public void setSpecialKeyDetection(boolean enable,
GlobalShortcutListener callback)
setSpecialKeyDetection in interface GlobalShortcutServiceenable - enable or not special key detection.callback - object to be notifiedpublic AWTKeyStroke getSpecialKey()
getSpecialKey in interface GlobalShortcutServicepublic void test()
|
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 | |||||||||