Examples of XCheckBox


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

Examples of com.sun.star.awt.XCheckBox

        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

Examples of com.sun.star.awt.XCheckBox

     
        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

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

Examples of com.sun.star.awt.XCheckBox

        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

Examples of com.sun.star.awt.XCheckBox

    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

Examples of com.sun.star.awt.XCheckBox

            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

Examples of net.xoetrope.html.XCheckbox

    public Sample() {
       
    }
   
    public void enable() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check4" );
        XButton one = (XButton)findComponent( "one" );
        XButton two = (XButton)findComponent( "two" );
        XButton three = (XButton)findComponent( "three" );
        XRadioButton rad1 = (XRadioButton)findComponent( "radio1" );
        XRadioButton rad2 = (XRadioButton)findComponent( "radio2" );
        XRadioButton rad3 = (XRadioButton)findComponent( "radio3" );
        XRadioButton rad4 = (XRadioButton)findComponent( "radio4" );
        XRadioButton rad5 = (XRadioButton)findComponent( "radio5" );
        XRadioButton rad6 = (XRadioButton)findComponent( "radio6" );
        XLabel rad1_txt = (XLabel)findComponent( "radio1_txt" );
        XLabel rad2_txt = (XLabel)findComponent( "radio2_txt" );
        XLabel rad3_txt = (XLabel)findComponent( "radio3_txt" );
        XLabel rad4_txt = (XLabel)findComponent( "radio4_txt" );
        XLabel rad5_txt = (XLabel)findComponent( "radio5_txt" );
        XLabel rad6_txt = (XLabel)findComponent( "radio6_txt" );
        XLabel ch1_txt = (XLabel)findComponent( "check1_txt" );
        XLabel ch2_txt = (XLabel)findComponent( "check2_txt" );
        XLabel ch3_txt = (XLabel)findComponent( "check3_txt" );
        XCheckbox ch1 = (XCheckbox)findComponent( "check1" );
        XCheckbox ch2 = (XCheckbox)findComponent( "check2" );
        XCheckbox ch3 = (XCheckbox)findComponent( "check3" );
        if ( check1.isSelected() ) {
            one.setEnabled( false );
            two.setEnabled( false );
            three.setEnabled( false );
            rad1.setEnabled( false );
            rad2.setEnabled( false );
            rad3.setEnabled( false );
            rad4.setEnabled( false );
            rad5.setEnabled( false );
            rad6.setEnabled( false );
            ch1.setEnabled( false );
            ch2.setEnabled( false );
            ch3.setEnabled( false );
            rad1_txt.setFontColor( "#DDDDDD" );
            rad2_txt.setFontColor( "#DDDDDD" );
            rad3_txt.setFontColor( "#DDDDDD" );
            rad4_txt.setFontColor( "#DDDDDD" );
            rad5_txt.setFontColor( "#DDDDDD" );
            rad6_txt.setFontColor( "#DDDDDD" );
            ch1_txt.setFontColor( "#DDDDDD" );
            ch2_txt.setFontColor( "#DDDDDD" );
            ch3_txt.setFontColor( "#DDDDDD" );
        } else {
            one.setEnabled( true );
            two.setEnabled( true );
            three.setEnabled( true );
            rad1.setEnabled( true );
            rad2.setEnabled( true );
            rad3.setEnabled( true );
            rad4.setEnabled( true );
            rad5.setEnabled( true );
            rad6.setEnabled( true );
            ch1.setEnabled( true );
            ch2.setEnabled( true );
            ch3.setEnabled( true );
            rad1_txt.setFontColor( "" );
            rad2_txt.setFontColor( "" );
            rad3_txt.setFontColor( "" );
            rad4_txt.setFontColor( "" );
            rad5_txt.setFontColor( "" );
View Full Code Here

Examples of net.xoetrope.html.XCheckbox

            ch3_txt.setFontColor( "" );
        }
    }
   
    public void enableEdit() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check1" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( check1.isSelected() ) {
            edit1.setEnabled( false );
            edit2.setEnabled( false );
            pass.setEnabled( false );
            text1.setEnabled( false );
            text2.setEnabled( false );
View Full Code Here

Examples of net.xoetrope.html.XCheckbox

            text2.setEnabled( true );
        }
    }
   
    public void enableCombo() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check1" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check1.isSelected() ) {
            combo.setEnabled( false );
        } else {
            combo.setEnabled( true );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.