com.jniwrapper.win32.hook
Class CBTHookAdapter

java.lang.Object
  extended by com.jniwrapper.win32.hook.CBTHookAdapter
All Implemented Interfaces:
CBTHookListener, java.util.EventListener

public class CBTHookAdapter
extends java.lang.Object
implements CBTHookListener

An abstract adapter class for receiving CBT Hook events.


Constructor Summary
CBTHookAdapter()
           
 
Method Summary
 void activate(CBTEvent.Activate event)
          Specifies the event when the system is about to activate a window.
 void clickSkipped(CBTEvent.ClickSkipped event)
          Specifies the event when the system has removed a mouse message from the system message queue.
 void createWnd(CBTEvent.CreateWnd event)
          Specifies the event when a window is about to be created.
 void destroyWnd(CBTEvent.DestroyWnd event)
          Specifies the event when a window is about to be destroyed.
 void keySkipped(CBTEvent.KeySkipped event)
          Specifies the event when the system has removed a keyboard message from the system message queue.
 void minMax(CBTEvent.MinMax event)
          Specifies the event when a window is about to be minimized or maximized.
 void moveSize(CBTEvent.MoveSize event)
          Specifies the event when a window is about to be moved or sized.
 void qs(CBTEvent.QS event)
          Specifies the event when the system has retrieved a WM_QUEUESYNC message from the system message queue.
 void setFocus(CBTEvent.SetFocus event)
          Specifies the event when a window is about to receive the keyboard focus.
 void sysCommand(CBTEvent.SysCommand event)
          Specifies the event when a system command is about to be carried out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CBTHookAdapter

public CBTHookAdapter()
Method Detail

activate

public void activate(CBTEvent.Activate event)
Description copied from interface: CBTHookListener
Specifies the event when the system is about to activate a window.

Specified by:
activate in interface CBTHookListener
Parameters:
event - CBTEvent.Activate event object

clickSkipped

public void clickSkipped(CBTEvent.ClickSkipped event)
Description copied from interface: CBTHookListener
Specifies the event when the system has removed a mouse message from the system message queue. Upon receiving this hook code, a CBT application must install a WH_JOURNALPLAYBACK hook procedure in response to the mouse message.

Specified by:
clickSkipped in interface CBTHookListener
Parameters:
event - CBTEvent.ClickSkipped event object

createWnd

public void createWnd(CBTEvent.CreateWnd event)
Description copied from interface: CBTHookListener
Specifies the event when a window is about to be created.

Specified by:
createWnd in interface CBTHookListener
Parameters:
event - CBTEvent.CreateWnd event object

destroyWnd

public void destroyWnd(CBTEvent.DestroyWnd event)
Description copied from interface: CBTHookListener
Specifies the event when a window is about to be destroyed.

Specified by:
destroyWnd in interface CBTHookListener
Parameters:
event - CBTEvent.DestroyWnd event object

keySkipped

public void keySkipped(CBTEvent.KeySkipped event)
Description copied from interface: CBTHookListener
Specifies the event when the system has removed a keyboard message from the system message queue.

Specified by:
keySkipped in interface CBTHookListener
Parameters:
event - CBTEvent.KeySkipped event object.

minMax

public void minMax(CBTEvent.MinMax event)
Description copied from interface: CBTHookListener
Specifies the event when a window is about to be minimized or maximized.

Specified by:
minMax in interface CBTHookListener
Parameters:
event - CBTEvent.MinMax event object

moveSize

public void moveSize(CBTEvent.MoveSize event)
Description copied from interface: CBTHookListener
Specifies the event when a window is about to be moved or sized.

Specified by:
moveSize in interface CBTHookListener
Parameters:
event - CBTEvent.MoveSize event object

qs

public void qs(CBTEvent.QS event)
Description copied from interface: CBTHookListener
Specifies the event when the system has retrieved a WM_QUEUESYNC message from the system message queue.

Specified by:
qs in interface CBTHookListener
Parameters:
event - CBTEvent.QS event object

setFocus

public void setFocus(CBTEvent.SetFocus event)
Description copied from interface: CBTHookListener
Specifies the event when a window is about to receive the keyboard focus.

Specified by:
setFocus in interface CBTHookListener
Parameters:
event - CBTEvent.SetFocus event object

sysCommand

public void sysCommand(CBTEvent.SysCommand event)
Description copied from interface: CBTHookListener
Specifies the event when a system command is about to be carried out. This allows a CBT application to prevent task switching by means of hot keys.

Specified by:
sysCommand in interface CBTHookListener
Parameters:
event - CBTEvent.SysCommand event object