|
|||||||||||
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.LowLevelHook
com.jniwrapper.win32.hook.LowLevelMouseHook
Provides implementation of low-level mouse 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 |
Constructor Summary | |
LowLevelMouseHook()
|
Method Summary | |
void |
install()
Installs the hook. |
boolean |
isInstalled()
Verifies if the hook is installed. |
boolean |
isSynchronous()
Returns the mode of this hook. |
protected long |
processEvent(long wParam,
long lParam)
|
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. |
void |
uninstall()
Uninstalls the hook. |
Methods inherited from class com.jniwrapper.win32.hook.Hook |
addListener, getDescriptor, getFilter, notifyListeners, removeListener, setFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LowLevelMouseHook()
Method Detail |
protected long processEvent(long wParam, long lParam)
public boolean isInstalled()
Hook
isInstalled
in class Hook
public void install()
Hook
install
in class Hook
public void uninstall()
Hook
uninstall
in class Hook
public 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.public boolean isSynchronous()
Hook
isSynchronous
in class Hook
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |