summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-06-12 07:01:42 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-06-12 07:01:42 +0000
commit6e7e8e1409b34533ef7726ab0f3243d8babe98c5 (patch)
treec7e65cbc73544ff113242d202fcab145a5a775dd /accessibility
parent37c92fbb2198c5b705ee5e87909dfffe29fd4a04 (diff)
INTEGRATION: CWS uaa04 (1.4.12); FILE MERGED
2003/06/02 12:49:57 obr 1.4.12.1: #109747# implement getAccessibleContext in a failsafe way, so that it can't kill the dispatch thread of the Java AccessBridge for Windows
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/bridge/org/openoffice/java/accessibility/RadioButton.java19
1 files changed, 7 insertions, 12 deletions
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/RadioButton.java b/accessibility/bridge/org/openoffice/java/accessibility/RadioButton.java
index feacb652bf19..0bdb8f701bfc 100644
--- a/accessibility/bridge/org/openoffice/java/accessibility/RadioButton.java
+++ b/accessibility/bridge/org/openoffice/java/accessibility/RadioButton.java
@@ -54,32 +54,27 @@
*
*
************************************************************************/
-
package org.openoffice.java.accessibility;
-import com.sun.star.uno.*;
import com.sun.star.accessibility.*;
+import com.sun.star.uno.*;
-class RadioButton extends ToggleButton {
- public RadioButton(XAccessible xAccessible, XAccessibleContext xAccessibleContext) {
+class RadioButton extends ToggleButton {
+ public RadioButton(XAccessible xAccessible,
+ XAccessibleContext xAccessibleContext) {
super(xAccessible, xAccessibleContext);
}
- /** Returns the AccessibleContext associated with this object */
- public javax.accessibility.AccessibleContext getAccessibleContext() {
- if (accessibleContext == null) {
- accessibleContext = new AccessibleRadioButton();
- }
- return accessibleContext;
+ /** Creates the AccessibleContext associated with this object */
+ public javax.accessibility.AccessibleContext createAccessibleContext() {
+ return new AccessibleRadioButton();
}
protected class AccessibleRadioButton extends AccessibleToggleButton {
-
/** Gets the role of this object */
public javax.accessibility.AccessibleRole getAccessibleRole() {
return javax.accessibility.AccessibleRole.RADIO_BUTTON;
}
}
}
-