Kaydet (Commit) 5c25a0f5 authored tarafından Stephan Wunderlich's avatar Stephan Wunderlich

CHG: added ObjRelation for XAccessibleText

üst 1aa6ef5e
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleRadioButton.java,v $ * $RCSfile: AccessibleRadioButton.java,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change:$Date: 2003-03-26 14:55:03 $ * last change:$Date: 2003-03-31 13:23:39 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -150,6 +150,8 @@ public class AccessibleRadioButton extends TestCase { ...@@ -150,6 +150,8 @@ public class AccessibleRadioButton extends TestCase {
} }
} catch(com.sun.star.lang.IndexOutOfBoundsException e) { } catch(com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.DisposedException de) {
log.println("Already disposed");
} }
log.println("disposing xTextDoc"); log.println("disposing xTextDoc");
...@@ -200,6 +202,8 @@ public class AccessibleRadioButton extends TestCase { ...@@ -200,6 +202,8 @@ public class AccessibleRadioButton extends TestCase {
} }
} catch(com.sun.star.lang.IndexOutOfBoundsException e) { } catch(com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.DisposedException de) {
log.println("already disposed");
} }
if (xTextDoc != null) { if (xTextDoc != null) {
...@@ -305,6 +309,9 @@ public class AccessibleRadioButton extends TestCase { ...@@ -305,6 +309,9 @@ public class AccessibleRadioButton extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj); TestEnvironment tEnv = new TestEnvironment(oObj);
tEnv.addObjRelation("EditOnly",
"This method isn't supported in this component");
final XAccessibleComponent acomp = (XAccessibleComponent) final XAccessibleComponent acomp = (XAccessibleComponent)
UnoRuntime.queryInterface(XAccessibleComponent.class,oObj); UnoRuntime.queryInterface(XAccessibleComponent.class,oObj);
...@@ -317,6 +324,8 @@ public class AccessibleRadioButton extends TestCase { ...@@ -317,6 +324,8 @@ public class AccessibleRadioButton extends TestCase {
tEnv.addObjRelation("XAccessibleText.Text", "Internet"); tEnv.addObjRelation("XAccessibleText.Text", "Internet");
tEnv.addObjRelation("EditOnly","Can't change or select Text in AccessibleRadioButton");
XAccessibleValue anotherButtonValue = (XAccessibleValue) XAccessibleValue anotherButtonValue = (XAccessibleValue)
UnoRuntime.queryInterface(XAccessibleValue.class, anotherButton); UnoRuntime.queryInterface(XAccessibleValue.class, anotherButton);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment