|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.win32.hook.Hook
com.jniwrapper.win32.hook.CBTHook
Implementation of CBT hook.
Nested Class Summary |
Nested classes inherited from class com.jniwrapper.win32.hook.Hook |
Hook.Descriptor |
Field Summary |
Fields inherited from class com.jniwrapper.win32.hook.Hook |
_listeners, CALLWNDPROC, CALLWNDPROCRET, CBT, FOREGROUNDIDLE, GETMESSAGE, JOURNALRECORD, KEYBOARD, KEYBOARD_LL, MOUSE, MOUSE_LL, SHELL, SYSMSGFILTER |
Method Summary | |
void |
addListener(CBTHookListener listener)
Adds CBTHookListener to this hook. |
void |
removeListener(CBTHookListener listener)
Removes CBTHookListener from this hook. |
void |
setSynchronous(boolean synchronous)
This method allows to swith between synchronous/asynchronous modes of the hook. Note: synchronous mode may significatly reduce the performance of the system, so use this mode carefully. |
Methods inherited from class com.jniwrapper.win32.hook.Hook |
addListener, getDescriptor, getFilter, install, isInstalled, isSynchronous, notifyListeners, removeListener, setFilter, uninstall |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void addListener(CBTHookListener listener)
CBTHookListener
to this hook.
listener
- CBT hook listenerpublic void removeListener(CBTHookListener listener)
CBTHookListener
from this hook.
listener
- CBT hook listenerpublic void setSynchronous(boolean synchronous)
Hook
setSynchronous
in class Hook
synchronous
- specifies the mode of the hook; if true then hook works in synchronous mode; false otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |