com.jniwrapper.win32.hook
Class CBTEvent.Activate

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.jniwrapper.win32.hook.HookEventObject
          extended bycom.jniwrapper.win32.hook.CBTEvent
              extended bycom.jniwrapper.win32.hook.CBTEvent.Activate
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CBTEvent

public static class CBTEvent.Activate
extends CBTEvent

Represents HCBT_ACTIVATE hook event.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.jniwrapper.win32.hook.CBTEvent
CBTEvent.Activate, CBTEvent.ClickSkipped, CBTEvent.CreateWnd, CBTEvent.DestroyWnd, CBTEvent.KeySkipped, CBTEvent.MinMax, CBTEvent.MoveSize, CBTEvent.QS, CBTEvent.SetFocus, CBTEvent.SysCommand
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CBTEvent.Activate(java.lang.Object source, com.jniwrapper.Bool allow, Wnd activeWindow, Wnd activatedWindow, boolean activatedByMouse)
           
 
Method Summary
 Wnd getActivatedWindow()
          Handle to the window about to be activated.
 Wnd getActiveWindow()
          Handle to the active window.
 boolean isActivatedByMouse()
          Specifies whether the window is being activated as a result of a mouse click.
 
Methods inherited from class com.jniwrapper.win32.hook.CBTEvent
setAllow
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CBTEvent.Activate

public CBTEvent.Activate(java.lang.Object source,
                         com.jniwrapper.Bool allow,
                         Wnd activeWindow,
                         Wnd activatedWindow,
                         boolean activatedByMouse)
Method Detail

getActiveWindow

public Wnd getActiveWindow()
Handle to the active window.

Returns:
window handle

getActivatedWindow

public Wnd getActivatedWindow()
Handle to the window about to be activated.

Returns:
window handle

isActivatedByMouse

public boolean isActivatedByMouse()
Specifies whether the window is being activated as a result of a mouse click.

Returns:
true if window was activated by a mouse click; false otherwise.