summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-07-23 09:49:36 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-07-23 09:49:36 +0000
commit62c0560477d7cc1c00323ba26764112bb7a6f8f2 (patch)
tree669afc0843d00c86f6c294bad12e80d7390505b0 /qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
parentb65c0d369cad63707acb223f56fe913fd5ddc580 (diff)
INTEGRATION: CWS qadev18 (1.5.58); FILE MERGED
2004/06/30 19:09:33 cn 1.5.58.1: #115141# EventProducer changed
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java')
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
index 9ecf69a14b0b..5bca90437a1d 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleTabPage.java,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change:$Date: 2004-01-05 20:39:58 $
+ * last change:$Date: 2004-07-23 10:49:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -296,16 +296,15 @@ public class AccessibleTabPage extends TestCase {
shortWait();
+ XInterface xEventInt = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB, "Variables");
+ final XAccessibleComponent eventAccComp = (XAccessibleComponent) UnoRuntime.queryInterface(
+ XAccessibleComponent.class,
+ xEventInt);
+
tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
- try {
- Robot rob = new Robot();
- rob.mouseMove(point.X + 20, point.Y + 70);
- rob.mousePress(InputEvent.BUTTON1_MASK);
- } catch (java.awt.AWTException e) {
- System.out.println("couldn't fire event");
- }
+ eventAccComp.grabFocus();
}
});