com.jniwrapper.win32.hook
Interface CBTHookListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
CBTHookAdapter

public interface CBTHookListener
extends java.util.EventListener

The listener interface for receiving events from CBT Hook hook.


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.
 

Method Detail

activate

public void activate(CBTEvent.Activate event)
Specifies the event when the system is about to activate a window.

Parameters:
event - CBTEvent.Activate event object

clickSkipped

public void clickSkipped(CBTEvent.ClickSkipped event)
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.

Parameters:
event - CBTEvent.ClickSkipped event object

createWnd

public void createWnd(CBTEvent.CreateWnd event)
Specifies the event when a window is about to be created.

Parameters:
event - CBTEvent.CreateWnd event object

destroyWnd

public void destroyWnd(CBTEvent.DestroyWnd event)
Specifies the event when a window is about to be destroyed.

Parameters:
event - CBTEvent.DestroyWnd event object

keySkipped

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

Parameters:
event - CBTEvent.KeySkipped event object.

minMax

public void minMax(CBTEvent.MinMax event)
Specifies the event when a window is about to be minimized or maximized.

Parameters:
event - CBTEvent.MinMax event object

moveSize

public void moveSize(CBTEvent.MoveSize event)
Specifies the event when a window is about to be moved or sized.

Parameters:
event - CBTEvent.MoveSize event object

qs

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

Parameters:
event - CBTEvent.QS event object

setFocus

public void setFocus(CBTEvent.SetFocus event)
Specifies the event when a window is about to receive the keyboard focus.

Parameters:
event - CBTEvent.SetFocus event object

sysCommand

public void sysCommand(CBTEvent.SysCommand event)
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.

Parameters:
event - CBTEvent.SysCommand event object