Package com.sun.star.accessibility

Examples of com.sun.star.accessibility.XAccessibleValue


            throws java.lang.Exception
     {
         try {
            XInterface xCheckBox =mAT.getAccessibleObjectForRole(mXRoot,
                                     AccessibleRole.CHECK_BOX, CheckBoxName);
            XAccessibleValue xCheckBoxValue = (XAccessibleValue)
                   UnoRuntime.queryInterface(XAccessibleValue.class, xCheckBox);
           
            return (Integer) xCheckBoxValue.getCurrentValue();
         } catch (Exception e) {
            throw new Exception("Could not set value to CheckBox '"
                                       + CheckBoxName + "' : " + e.toString());
        }
     }
View Full Code Here



        TestEnvironment tEnv = new TestEnvironment(oObj);

        getAccessibleObjectForRole(xRoot, AccessibleRole.SCROLL_BAR);
        final XAccessibleValue xAccVal = (XAccessibleValue) UnoRuntime.queryInterface
                                (XAccessibleValue.class, SearchedContext) ;

        tEnv.addObjRelation("EventProducer",
            new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
                public void fireEvent() {
                    Integer old = (Integer) xAccVal.getCurrentValue();
                    Integer newValue = new Integer(old.intValue()+10);
                    xAccVal.setCurrentValue(newValue);
                    xAccVal.setCurrentValue(old);
                }
            });

        return tEnv;
View Full Code Here

        }

        System.out.println("SERVICES:");
        util.dbg.getSuppServices(oObj);

        XAccessibleValue accV = (XAccessibleValue)
                UnoRuntime.queryInterface(XAccessibleValue.class, oObj);
        Object o = accV.getCurrentValue();
        if (o instanceof String)
            System.out.println("Value: " + (String)o);
        else
            System.out.println("Name of Object: " + o.getClass().getName());
        log.println("Getting the value: "+accV.getCurrentValue());




        accC = (XAccessibleComponent)
View Full Code Here

            failed(iabe.getMessage());
            return;
        }
*/

        XAccessibleValue accV = (XAccessibleValue)
                UnoRuntime.queryInterface(XAccessibleValue.class, oObj);
        Object o = accV.getCurrentValue();
        log.println("Getting the value: "+o + " is void " + util.utils.isVoid(o));


        XAccessibleComponent accC = (XAccessibleComponent)
                UnoRuntime.queryInterface(XAccessibleComponent.class, oObj);
View Full Code Here

TOP

Related Classes of com.sun.star.accessibility.XAccessibleValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.