Package com.sun.star.awt

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


    }

    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

        );
        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

     */
    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

                },
                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

TOP

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

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.