Package com.sun.star.awt

Examples of com.sun.star.awt.XCheckBox


        tEnv.addObjRelation("MODEL",the_Model);

        // Adding relation for XItemListener
        ifc.awt._XItemListener.TestItemListener listener =
            new ifc.awt._XItemListener.TestItemListener() ;
        XCheckBox box = (XCheckBox) UnoRuntime.queryInterface
            (XCheckBox.class, oObj) ;
        box.addItemListener(listener) ;
        tEnv.addObjRelation("TestItemListener", listener) ;

        // Adding relation for XWindow
        XWindow forObjRel = (XWindow)
                            UnoRuntime.queryInterface(XWindow.class,aControl);
View Full Code Here


        tEnv.addObjRelation("MODEL", the_Model);

        // adding object relation for XItemListener
        ifc.awt._XItemListener.TestItemListener listener =
                new ifc.awt._XItemListener.TestItemListener();
        XCheckBox check = (XCheckBox) UnoRuntime.queryInterface(
                                  XCheckBox.class, oObj);
        check.addItemListener(listener);
        tEnv.addObjRelation("TestItemListener", listener);

        System.out.println("ImplementationName: " + utils.getImplName(oObj));

        try {
View Full Code Here

     
        if ( checkBoxDialog )
        {
            // add to checkbox
            Object objectCheckBox = xControlCont.getControl( _checkBoxName );
            XCheckBox xCheckBox = ( XCheckBox )UnoRuntime.queryInterface(
                XCheckBox.class, objectCheckBox );
            xCheckBox.addItemListener((XItemListener) new ItemListenerImpl( xControlCont ) );
        }
     
        // create a peer
        Object toolkit = xMultiComponentFactory.createInstanceWithContext(
            "com.sun.star.awt.ExtToolkit", _xComponentContext );     
View Full Code Here

        tEnv.addObjRelation("MODEL",the_Model);

        // Adding relation for XItemListener
        ifc.awt._XItemListener.TestItemListener listener =
            new ifc.awt._XItemListener.TestItemListener() ;
        XCheckBox box = (XCheckBox) UnoRuntime.queryInterface
            (XCheckBox.class, oObj) ;
        box.addItemListener(listener) ;
        tEnv.addObjRelation("TestItemListener", listener) ;

        // Adding relation for XWindow
        XWindow forObjRel = (XWindow)
                            UnoRuntime.queryInterface(XWindow.class,aControl);
View Full Code Here

        tEnv.addObjRelation("MODEL", the_Model);

        // adding object relation for XItemListener
        ifc.awt._XItemListener.TestItemListener listener =
                new ifc.awt._XItemListener.TestItemListener();
        XCheckBox check = (XCheckBox) UnoRuntime.queryInterface(
                                  XCheckBox.class, oObj);
        check.addItemListener(listener);
        tEnv.addObjRelation("TestItemListener", listener);

        System.out.println("ImplementationName: " + utils.getImplName(oObj));

        try {
View Full Code Here

    public void setShownTipsProp(){
        isShownTips = false;
        if(m_xGalleryDialog != null){
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xGalleryDialog);
            if(xControlContainer != null){
                XCheckBox xTipsCheckBox = (XCheckBox) UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("TipsCheckBox"));
                if(xTipsCheckBox.getState() == 1)
                    isShownTips = true;
            }
        }
    }
View Full Code Here

            setImageOfObject(oButton, sPackageURL + "/images/upwardArrowProcess.png", (short)-1);

            setGalleryDialog2Images();
            setGalleryDialogText(Controller.SIMPLEORGANIGRAM);

            XCheckBox xTipsCheckBox = (XCheckBox) UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("TipsCheckBox"));
            if(isShownTips)
                xTipsCheckBox.setState((short)1);
            else
                xTipsCheckBox.setState((short)0);

        }catch(Exception ex){
            System.err.println(ex.getLocalizedMessage());
        }
    }
View Full Code Here

    }

    public boolean isBaseColorModeOfColorTable(){
        if(m_xColorTableDialog != null){
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xColorTableDialog);
            XCheckBox xBaseColorCheckBox = (XCheckBox)UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("baseColorsModeCheckBox"));
            if(xBaseColorCheckBox != null)
                if(xBaseColorCheckBox.getState() == 1)
                    return true;
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of com.sun.star.awt.XCheckBox

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.