Examples of XRadioButton


Examples of com.sun.star.awt.XRadioButton

        }
    }

    public short getConversationType(){
        if(m_xConvertDialog != null){
            XRadioButton xRadioButton = null;
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xConvertDialog);
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton1"));
            if(xRadioButton.getState() == true){
                if(getController().getGroupType() == Controller.ORGANIGROUP)
                    return Controller.SIMPLEORGANIGRAM;
            }
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton2"));
            if(xRadioButton.getState() == true){
                if(getController().getGroupType() == Controller.ORGANIGROUP)
                    return Controller.HORIZONTALORGANIGRAM;
            }
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton3"));
            if(xRadioButton.getState() == true){
                if(getController().getGroupType() == Controller.ORGANIGROUP)
                    return Controller.TABLEHIERARCHYDIAGRAM;
            }
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton4"));
            if(xRadioButton.getState() == true){
                if(getController().getGroupType() == Controller.ORGANIGROUP)
                    return Controller.ORGANIGRAM;
            }
        }
        return -1;
View Full Code Here

Examples of com.sun.star.awt.XRadioButton

    }

    public void setConvertDialogRadioButtons(){
        if(m_xConvertDialog != null){
            try {
                XRadioButton xRadioButton2          = null;
                XControl xControl                   = null;
                XPropertySet xProps                 = null;
                String disabledButton               = "convertOptionButton";
                XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xConvertDialog);

                if(getController().getGroupType() == Controller.ORGANIGROUP){
                    if(getController().getDiagramType() == Controller.SIMPLEORGANIGRAM){
                        xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton2"));
                        xRadioButton2.setState(true);
                        disabledButton += 1;
                    }
                    if(getController().getDiagramType() == Controller.HORIZONTALORGANIGRAM)
                        disabledButton += 2;
                    if(getController().getDiagramType() == Controller.TABLEHIERARCHYDIAGRAM)
View Full Code Here

Examples of com.sun.star.awt.XRadioButton

        );
        CurUnoDialog.insertLabel("lblProceed",
          new String[] {"Height", "Label", "PositionX", "PositionY", "Step", "TabIndex", "Width"},
          new Object[] { UIConsts.INTEGERS[8], slblProceed, new Integer(97), new Integer(62),UIConsts.INTEGERS[8], new Short(curtabindex++), new Integer(154)}
        );
        XRadioButton optWorkWithForm = CurUnoDialog.insertRadioButton("optWorkWithForm", null,
          new String[] {"Height", "HelpURL", "Label", "PositionX", "PositionY", "State", "Step", "TabIndex", "Width"},
          new Object[] { UIConsts.INTEGERS[8], "HID:34482", sWorkWithForm, new Integer(101), new Integer(77), new Short((short)1),UIConsts.INTEGERS[8], new Short(curtabindex++), new Integer(107)}
        );
        optModifyForm = CurUnoDialog.insertRadioButton("optModifyForm", null,
          new String[] {"Height", "HelpURL", "Label", "PositionX", "PositionY", "Step", "TabIndex", "Width"},
View Full Code Here

Examples of com.sun.star.awt.XRadioButton

     */
    private void checkRadio( String groupName, String refValue, XPropertySet form ) throws com.sun.star.uno.Exception, java.lang.Exception
    {
        XPropertySet xRadio = getRadioModel( groupName, refValue, form );

    XRadioButton radioButton = (XRadioButton)UnoRuntime.queryInterface(
      XRadioButton.class, m_document.getCurrentView().getControl( xRadio ) );
    radioButton.setState( true );
    }
View Full Code Here

Examples of com.sun.star.awt.XRadioButton

                },
                new Object[]
                {
                    UIConsts.INTEGERS[8], slblProceed, new Integer(97), new Integer(62), UIConsts.INTEGERS[8], new Short(curtabindex++), new Integer(185)
                });
        XRadioButton optWorkWithForm = CurUnoDialog.insertRadioButton("optWorkWithForm", null,
                new String[]
                {
                    "Height", "HelpURL", "Label", "PositionX", "PositionY", "State", "Step", "TabIndex", "Width"
                },
                new Object[]
View Full Code Here

Examples of net.xoetrope.awt.XRadioButton

  public TestXRadioButton() {
  }

  public void testSetState()
  {
    XRadioButton button1 = new XRadioButton();
    XRadioButton button2 = new XRadioButton();
    button1.setState( false );
    button2.setState( true );
    assertTrue( button1.getState() != button2.getState());
  }
View Full Code Here

Examples of net.xoetrope.html.XRadioButton

    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( "" );
View Full Code Here

Examples of net.xoetrope.html.XRadioButton

    public void visible() {
        XCheckbox check2 = (XCheckbox)findComponent( obj, "check5" );
        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 ( check2.isSelected() ) {
            one.setVisible( false );
            two.setVisible( false );
            three.setVisible( false );
            rad1.setVisible( false );
            rad2.setVisible( false );
            rad3.setVisible( false );
            rad4.setVisible( false );
            rad5.setVisible( false );
            rad6.setVisible( false );
            ch1.setVisible( false );
            ch2.setVisible( false );
            ch3.setVisible( false );
            rad1_txt.setVisible( false );
            rad2_txt.setVisible( false );
            rad3_txt.setVisible( false );
            rad4_txt.setVisible( false );
            rad5_txt.setVisible( false );
            rad6_txt.setVisible( false );
            ch1_txt.setVisible( false );
            ch2_txt.setVisible( false );
            ch3_txt.setVisible( false );
        } else {
            one.setVisible( true );
            two.setVisible( true );
            three.setVisible( true );
            rad1.setVisible( true );
            rad2.setVisible( true );
            rad3.setVisible( true );
            rad4.setVisible( true );
            rad5.setVisible( true );
            rad6.setVisible( true );
            ch1.setVisible( true );
            ch2.setVisible( true );
            ch3.setVisible( true );
            rad1_txt.setVisible( true );
            rad2_txt.setVisible( true );
View Full Code Here

Examples of net.xoetrope.html.XRadioButton

            img.setImageSrc( "../images/tux.jpg" );
        }
    }
   
    public void font10() {
        XRadioButton radio1 = (XRadioButton)findComponent( obj, "radio7" );
        XButton one = (XButton)findComponent( "one" );
        XButton two = (XButton)findComponent( "two" );
        XButton three = (XButton)findComponent( "three" );
        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" );
        if ( radio1.isSelected() ) {
            one.setFontSize( 10 );
            two.setFontSize( 10 );
            three.setFontSize( 10 );
            rad1_txt.setFontSize( 10 );
            rad2_txt.setFontSize( 10 );
View Full Code Here

Examples of net.xoetrope.html.XRadioButton

            ch3_txt.setFontSize( 10 );
        }
    }
   
    public void font10Edit() {
        XRadioButton radio1 = (XRadioButton)findComponent( obj, "radio1" );
        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 ( radio1.isSelected() ) {
            edit1.setFontSize( 10 );
            edit2.setFontSize( 10 );
            pass.setFontSize( 10 );
            text1.setFontSize( 10 );
            text2.setFontSize( 10 );
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.