diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2003-04-17 14:24:39 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2003-04-17 14:24:39 +0000 |
commit | 878b75ad35c3d80f136d222c4b2e246efac3e81b (patch) | |
tree | 1f9403e95104c8b7b87f79494da63af31842f208 /accessibility | |
parent | e2fa04a8237b80cb4c08937ffe3399308141be78 (diff) |
INTEGRATION: CWS vcl08 (1.3.8); FILE MERGED
2003/04/10 13:33:11 obr 1.3.8.1: #108177# fixed several lifecycle issues
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/bridge/org/openoffice/java/accessibility/Component.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/Component.java b/accessibility/bridge/org/openoffice/java/accessibility/Component.java index bac196f4b73c..d62fd5e9525d 100644 --- a/accessibility/bridge/org/openoffice/java/accessibility/Component.java +++ b/accessibility/bridge/org/openoffice/java/accessibility/Component.java @@ -2,9 +2,9 @@ * * $RCSfile: Component.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-03-18 15:48:18 $ + * last change: $Author: rt $ $Date: 2003-04-17 15:24:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -210,6 +210,12 @@ public abstract class Component extends java.awt.Component { protected void fireStatePropertyChange(AccessibleState state, boolean set) { PropertyChangeBroadcaster broadcaster; + +// if (Build.DEBUG) { +// System.err.println("[" + AccessibleRoleAdapter.getAccessibleRole(unoAccessibleContext.getAccessibleRole()) + "] " + +// unoAccessibleContext.getAccessibleName() + " is " + (set ? "now " : "no longer ") + state); +// } + if (set) { broadcaster = new PropertyChangeBroadcaster( accessibleContext.ACCESSIBLE_STATE_PROPERTY, @@ -364,7 +370,7 @@ public abstract class Component extends java.awt.Component { handleDescriptionChangedEvent(event.NewValue); break; case AccessibleEventId.ACCESSIBLE_CHILD_EVENT: - if(Build.DEBUG) { + if (Build.DEBUG) { System.out.println("Unexpected child event for object of role " + getAccessibleContext().getAccessibleRole()); } break; @@ -685,6 +691,9 @@ public abstract class Component extends java.awt.Component { public java.awt.Point getLocationOnScreen() { try { com.sun.star.awt.Point unoPoint = unoAccessibleComponent.getLocationOnScreen(); +// if (Build.DEBUG) { +// System.err.println("Returning location on screen( " + unoPoint.X + ", " + unoPoint.Y + " )" ); +// } return new java.awt.Point(unoPoint.X, unoPoint.Y); } catch (com.sun.star.uno.RuntimeException e) { return null; |