![]() |
JavaTM Access Bridge
for the Microsoft Windows Operating System Version 1.0.4 Java Ferret Example |
Contents |
cd c:\swing-1.1\examples\Simple
runnit
and in another window:
cd c:\AccessBridge-1.0.4
JavaFerret
You now have two windows open: the Simple Java application
window, and the JavaFerret window. JavaFerret has three
interesting menus: "UpdateSettings" "JavaEvents" and
"AccessibilityEvents".
The items in these menus allow you to query Java applications in a variety
of ways.
Update from Mouse
Determines the (x,y) coordinate of the mouse (assuming the JavaFerret window is topmost) when the mouse has stopped moving, and then queries the Java Access Bridge for the Accessible object underneath the mouse, dumping the output into the scrolling window.Update with F1 (Mouse Point)
Determines the (x,y) coordinate of the mouse (assuming the JavaFerret window is topmost), and then queries the Java Access Bridge for the Accessible object underneath the mouse, dumping the output into the scrolling window.
Update with F2 (Mouse HWND)
Determines the (x,y) coordinate of the mouse (assuming the JavaFerret window is topmost), and then queries the Java Access Bridge for the Accessible object of the HWND underneath the mouse, dumping the output into the scrolling window.
Track Mouse Events
Register with the Java Access Bridge for all Java 'Mouse Entered' events, and upon receiving one, query the object which was entered by the mouse and dump the output into the scrolling window. Note: If the mouse is moved quickly, there may be some delay before the displayed information is updated.
Track Focus Events
Register with the Java Access Bridge for all Java 'Focus Gained' events, and upon receiving one, query the object which received the focus and dump the output into the scrolling window.
Track Caret Events
Register with the Java Access Bridge for all Java 'Caret Update' events, and upon receiving one, query the object in which the caret was updated, and dump the output into the scrolling window. Note: Since objects that contain carets are virtually by definition objects which are rich text objects, this won't seem as responsive as the other event tracking options. In real use, one would make fewer calls of the Java Access Bridge in Caret Update situations (e.g. just get the new letter, word, sentence at the caret location), which would be significantly faster.
Track Menu Selected | Deselected | Canceled Events
Register with the Java Access Bridge for the various Menu events, and upon receiving one, query the object in which the caret was updated, and dump the output into the scrolling window.
Track Popup Visible | Invisible | Canceled Events
Register with the Java Access Bridge for the various Popup Menu events, and upon receiving one, query the object in which the caret was updated, and dump the output into the scrolling window.
Track Property Change Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track Name Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Name" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track Description Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Description" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track State Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "State" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track Value Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Value" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track Selection Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Selection" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track Text Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Text" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track Caret Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Caret" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track VisibleData Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "VisibleData" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track Child Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Child" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Track ActiveDescendent Property Events
Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "ActiveDescendent" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
Copyright © 2003 Sun Microsystems, Inc. All Rights Reserved. Please send comments to: access@sun.com |
![]() |