|
||||||||||
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.MsaaAccessibilityEventService
public class MsaaAccessibilityEventService
Constructor Summary | |
---|---|
MsaaAccessibilityEventService(IWindowService windowService)
|
Method Summary | |
---|---|
void |
addAccessibilityEventListener(IModelEventListener listener,
Object[] eventTypes)
add the listener to be notified when events of the given type are fired from the underlying system |
static boolean |
closeHandle(int hObject)
|
protected static int |
createAccessibleObjectFromEvent(int hwnd,
int idObject,
int idChild)
|
static int |
createFileMapping(int lProtect,
int dwMaximumSizeHigh,
int dwMaximumSizeLow,
String name)
|
static String |
eventName(int event)
|
protected static void |
fireAccessibilityModelEvent(AccessibilityModelEvent accEvent,
int eventId)
|
static long |
getClockTicks()
|
static int |
getWinEventFlag()
|
boolean |
initThread()
|
protected static long |
internalGetClockTicks()
|
protected boolean |
internalRemoveWinEventHook(int hook)
|
protected int |
internalSetWinEventHook(int eventMin,
int eventMax,
int idThread,
int idProcess,
int dwFlags)
|
static int |
mapViewOfFile(int hFileMappingObj,
int dwDesiredAccess,
int dwFileOffsetHigh,
int dwFileOffsetLow,
int dwNumberOfBytesToMap)
|
static int |
openFileMapping(int dwDesiredAccess,
boolean bInheritHandle,
String name)
|
static String[] |
readFromMem(int lpBaseAddress)
|
void |
removeAccessibilityEventListener(IModelEventListener listener,
Object[] eventTypes)
remove a previously added listener |
protected boolean |
removeWinEventHook(int hook)
remove a previously registered winEventHook |
protected static void |
setTimeDiff()
|
static void |
setWinEventFlag(int evFlag)
|
protected int |
setWinEventHook(int eventMin,
int eventMax,
int idProcess,
int idThread)
MSAA SetWinEventHook function wrapper |
static boolean |
unmapViewOfFile(int lpBaseAddress)
|
protected static void |
winEventCallback(int eventId,
int hwnd,
int idObject,
int idChild,
long time)
callback from the native Windows system for out-of-process Msaa events. |
protected void |
winEventIPCallback()
callback from the native Windows system for in-process Msaa events. |
static void |
writeToMem(int lpBaseAddress,
int content)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EVENT_SYSTEM_MENUSTART
public static final int EVENT_SYSTEM_MENUEND
public static final int EVENT_SYSTEM_MENUPOPUPSTART
public static final int EVENT_SYSTEM_MENUPOPUPEND
public static final int EVENT_OBJECT_CREATE
public static final int EVENT_OBJECT_DESTROY
public static final int EVENT_OBJECT_SHOW
public static final int EVENT_OBJECT_HIDE
public static final int EVENT_OBJECT_REORDER
public static final int EVENT_OBJECT_FOCUS
public static final int EVENT_OBJECT_SELECTION
public static final int EVENT_OBJECT_SELECTIONADD
public static final int EVENT_OBJECT_SELECTIONREMOVE
public static final int EVENT_OBJECT_SELECTIONWITHIN
public static final int EVENT_OBJECT_STATECHANGE
public static final int EVENT_OBJECT_LOCATIONCHANGE
public static final int EVENT_OBJECT_NAMECHANGE
public static final int EVENT_OBJECT_DESCRIPTIONCHANGE
public static final int EVENT_OBJECT_VALUECHANGE
public static final int EVENT_OBJECT_PARENTCHANGE
public static final int EVENT_OBJECT_HELPCHANGE
public static final int EVENT_OBJECT_DEFACTIONCHANGE
public static final int EVENT_OBJECT_ACCELERATORCHANGE
public static final int WINEVENT_OUTOFCONTEXT
public static final int WINEVENT_SKIPOWNTHREAD
public static final int WINEVENT_SKIPOWNPROCESS
public static final int WINEVENT_INCONTEXT
protected static Map _listenerMap
protected Map _hookMap
protected IWindowService _windowService
protected static int _flag
protected static long timeDiff
protected static long initClockTicks
public static final String fileMappingObjName
public static final int PAGE_READONLY
public static final int PAGE_READWRITE
public static final int PAGE_WRITECOPY
public static final int FILE_MAP_COPY
public static final int FILE_MAP_WRITE
public static final int FILE_MAP_READ
protected static int mapFilePtr
public final int dwMemFileSize
protected static boolean isMapFileOpen
Constructor Detail |
---|
public MsaaAccessibilityEventService(IWindowService windowService)
Method Detail |
---|
public static int createFileMapping(int lProtect, int dwMaximumSizeHigh, int dwMaximumSizeLow, String name)
public static int openFileMapping(int dwDesiredAccess, boolean bInheritHandle, String name)
public static int mapViewOfFile(int hFileMappingObj, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumberOfBytesToMap)
public static boolean unmapViewOfFile(int lpBaseAddress)
public static void writeToMem(int lpBaseAddress, int content)
public static String[] readFromMem(int lpBaseAddress)
public static boolean closeHandle(int hObject)
public boolean initThread()
public static int getWinEventFlag()
public static void setWinEventFlag(int evFlag)
public static long getClockTicks()
protected static long internalGetClockTicks()
protected int setWinEventHook(int eventMin, int eventMax, int idProcess, int idThread)
eventMin
- - minimum event type for hook
(use one of the pre-defined constants in this class)eventMax
- - maximum event value for hook
(use one of the pre-defined constants in this class)idProcess
- - usually to be obtained from getProcessId(int)idThread
- - use id of desired thread or 0 for all threads
removeWinEventHook(int)
protected int internalSetWinEventHook(int eventMin, int eventMax, int idThread, int idProcess, int dwFlags)
protected boolean removeWinEventHook(int hook)
hook
- - hook reference obtained from setWinEventHook
true
if hook successfully removed, false
otherwisesetWinEventHook(int, int, int, int)
protected boolean internalRemoveWinEventHook(int hook)
protected static void winEventCallback(int eventId, int hwnd, int idObject, int idChild, long time)
MsaaAccessible
.
In this case, the source of the resulting event will be this MsaaAccessible
object.
The appropriate listeners for the given event id are notified and the AccesibilityModelEvent
is
created from the formed MsaaAccessible
eventId
- hwnd
- idObject
- idChild
- time
- protected static int createAccessibleObjectFromEvent(int hwnd, int idObject, int idChild)
protected void winEventIPCallback()
The appropriate listeners for the given event id are notified and the AccesibilityModelEvent
is
created. Here, the source of the AccesibilityModelEvent is a string array containing information about the
accessible that fired the event
protected static void fireAccessibilityModelEvent(AccessibilityModelEvent accEvent, int eventId)
public void addAccessibilityEventListener(IModelEventListener listener, Object[] eventTypes)
addAccessibilityEventListener
in interface IAccessibilityEventService
listener
- eventTypes
- to be chosen from constants in this classorg.eclipse.actf.accservice.core.win32.msaa.MsaaGuiModel#registerModelEventListener(IModelEventListener, Object[])
protected static void setTimeDiff()
public void removeAccessibilityEventListener(IModelEventListener listener, Object[] eventTypes)
removeAccessibilityEventListener
in interface IAccessibilityEventService
#addAccessibilityListener(AccessibilityEventListener, Object)
public static String eventName(int event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |