diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2003-06-12 07:03:08 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2003-06-12 07:03:08 +0000 |
commit | d696e7a6294df05cc842898ab3370ce48c80f4c1 (patch) | |
tree | 59520cd3e51d1056ec4c44e10b8760b6fc8f5b30 /accessibility | |
parent | afb47054e29233553cf33752e90ed9e8d4ff8cad (diff) |
INTEGRATION: CWS uaa04 (1.5.12); FILE MERGED
2003/06/05 15:16:43 obr 1.5.12.3: #109943# changes needed for WindowsAccessBridgeAdapter.java
2003/06/04 07:21:20 obr 1.5.12.2: finished transition from tabs to spaces
2003/05/26 09:50:40 obr 1.5.12.1: #i14151# UAA NAME_CHANGED events were mapped to JAA AccessibleDescription events. fixed.
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/bridge/org/openoffice/java/accessibility/Window.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/Window.java b/accessibility/bridge/org/openoffice/java/accessibility/Window.java index 9852d253ffcb..c02ff91cad56 100644 --- a/accessibility/bridge/org/openoffice/java/accessibility/Window.java +++ b/accessibility/bridge/org/openoffice/java/accessibility/Window.java @@ -223,8 +223,13 @@ public class Window extends java.awt.Window implements javax.accessibility.Acces /** Updates the accessible name and fires the appropriate PropertyChangedEvent */ protected void handleNameChangedEvent(Object any) { try { -// Window.this.setTitle(AnyConverter.toString(any)); - AnyConverter.toString(any); + // This causes the property change event to be fired in the VCL thread + // context. If this causes problems, it has to be deligated to the java + // dispatch thread .. + javax.accessibility.AccessibleContext ac = accessibleContext; + if (ac!= null) { + ac.setAccessibleName(AnyConverter.toString(any)); + } } catch (com.sun.star.lang.IllegalArgumentException e) { } } @@ -503,7 +508,7 @@ public class Window extends java.awt.Window implements javax.accessibility.Acces /** Gets the location of this component in the form of a point specifying the component's top-left corner */ public java.awt.Point getLocation() { try { - com.sun.star.awt.Point unoPoint = unoAccessibleComponent.getLocation(); + com.sun.star.awt.Point unoPoint = unoAccessibleComponent.getLocationOnScreen(); return new java.awt.Point( unoPoint.X, unoPoint.Y ); } catch (com.sun.star.uno.RuntimeException e) { return null; |