|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.accservice.core.win32.msaa.MsaaWindowService
public class MsaaWindowService
implementation of a window service for the Windows operating system
Field Summary | |
---|---|
static int |
HWND_BOTTOM
|
static int |
HWND_NOTOPMOST
|
static int |
HWND_TOP
|
static int |
HWND_TOPMOST
|
static int |
WH_CALLWNDPROC
|
static int |
WH_CBT
|
Constructor Summary | |
---|---|
MsaaWindowService()
|
Method Summary | |
---|---|
void |
addTopLevelWindowListener(TopLevelWindowEventListener listener)
add a listener to be notified of creation and destruction of top-level native windows |
protected void |
fireTopLevelWindowEvent(MsaaAccessible ca)
|
Object |
getActiveWindow()
get the active or current window. |
static Point |
getCurrentCursorLocation()
|
int |
getCurrentProcessId()
|
int |
getProcessId(Object window)
get the process id with which the given window is associated |
static int |
getSystemMetricsHeight()
|
static int |
getSystemMetricsWidth()
|
Object[] |
getTopLevelWindows()
retreave all top-level windows from whatever object is considered to be the underlying platform's desktop. |
protected int |
internalGetActiveWindow()
|
protected static Point |
internalGetCurrentCursorLocation()
|
protected int |
internalGetCurrentProcessId()
|
protected int |
internalGetProcessId(int hwnd)
|
protected static int[] |
internalGetWindowsList()
|
protected boolean |
internalRemoveWindowsHook(int hook)
|
protected static void |
internalSetWindowPosition(int hwnd,
int pos)
|
protected int |
internalSetWindowsHook(int idHook)
|
protected static void |
internalShowWindow(int hwnd)
|
void |
removeTopLevelWindowListener(TopLevelWindowEventListener listener)
remove a previously added top-level window listener |
boolean |
removeWindowsHook(int hook)
remove a previously registered window hook |
void |
setActiveWindow(Object window)
sets the given window as the activeWindow |
static int |
setLayeredWindowAttributes(int hwnd,
int crKey,
char bAlpha,
int dwFlags)
|
void |
setWindowNoTop(int hwnd)
|
void |
setWindowOnTop(int hwnd)
|
int |
setWindowsHook(int hwndHookParam)
set a windows hook for monitoring window-related events |
void |
showWindow(int hwnd)
|
protected void |
windowCallback(int hwnd)
not to be used by clients; made public so that native code can reference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WH_CALLWNDPROC
public static final int WH_CBT
public static final int HWND_TOP
public static final int HWND_BOTTOM
public static final int HWND_TOPMOST
public static final int HWND_NOTOPMOST
Constructor Detail |
---|
public MsaaWindowService()
Method Detail |
---|
public Object[] getTopLevelWindows()
getTopLevelWindows
in interface IWindowService
protected static int[] internalGetWindowsList()
public void setActiveWindow(Object window)
IWindowService
setActiveWindow
in interface IWindowService
window
- to be set as activepublic Object getActiveWindow()
IWindowService
getActiveWindow
in interface IWindowService
protected int internalGetActiveWindow()
public int getProcessId(Object window)
getProcessId
in interface IWindowService
window
- window for which process id is desired
protected int internalGetProcessId(int hwnd)
public int getCurrentProcessId()
getCurrentProcessId
in interface IWindowService
protected int internalGetCurrentProcessId()
public int setWindowsHook(int hwndHookParam)
hwndHookParam
- - one of the pre-defined constants in this class
protected int internalSetWindowsHook(int idHook)
public boolean removeWindowsHook(int hook)
hook
- - hook reference obtained from setWindowsHook
true
if hook successfully removed, false
otherwisesetWindowsHook(int)
protected boolean internalRemoveWindowsHook(int hook)
protected void windowCallback(int hwnd) throws InvalidComponentException
hwnd
-
InvalidComponentException
public void removeTopLevelWindowListener(TopLevelWindowEventListener listener)
removeTopLevelWindowListener
in interface IWindowService
listener
- IWindowService.addTopLevelWindowListener(TopLevelWindowEventListener)
protected void fireTopLevelWindowEvent(MsaaAccessible ca)
public void addTopLevelWindowListener(TopLevelWindowEventListener listener)
addTopLevelWindowListener
in interface IWindowService
listener
- public void setWindowOnTop(int hwnd)
public void setWindowNoTop(int hwnd)
public void showWindow(int hwnd)
public static Point getCurrentCursorLocation()
protected static Point internalGetCurrentCursorLocation()
protected static void internalShowWindow(int hwnd)
protected static void internalSetWindowPosition(int hwnd, int pos)
public static final int setLayeredWindowAttributes(int hwnd, int crKey, char bAlpha, int dwFlags)
public static int getSystemMetricsWidth()
public static int getSystemMetricsHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |