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.
This commit is contained in:
parent
afb47054e2
commit
d696e7a629
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue