TestEnvironment tEnv = new TestEnvironment(oObj);
tEnv.addObjRelation("XAccessibleSelection.multiSelection",
new Boolean(false));
final XAccessibleSelection sel = (XAccessibleSelection) UnoRuntime.queryInterface(
XAccessibleSelection.class,
oObj);
tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
sel.selectAccessibleChild(2);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
System.out.println("Couldn't fire event");
}
}
});