Examples of XRadioButton


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

     */
    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 com.sun.star.awt.XRadioButton

    }

    public void setTextProperties(){
        if(m_xPropsDialog != null){
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xPropsDialog);
            XRadioButton textFitRB = (XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("textFitOptionButton"));
            XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
            boolean isFitText = textFitRB.getState();
            getController().getDiagram().setTextFitProp(isFitText);

            float newFontSize = 0;
            if(!isFitText)
                newFontSize = FontSize._getFontSize(fontSizeLB.getSelectedItemPos());
View Full Code Here

Examples of com.sun.star.awt.XRadioButton

                m_xGradientDialogWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, m_xGradientDialog);
                m_IsShownGradientDialog = true;
                short exec = m_xGradientDialog.execute();
                m_IsShownGradientDialog = false;
                if(exec == 1){
                    XRadioButton xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("setGradientOptionButton"));
                    if(xRadioButton.getState()){
                        getController().getDiagram().setStartColorProp(getImageColorOfControl(xControlContainer.getControl("startColor")));
                        getController().getDiagram().setEndColorProp(getImageColorOfControl(xControlContainer.getControl("endColor")));
                        getController().getDiagram().setGradientDirectionProp(xListBox.getSelectedItemPos());
                        getController().getDiagram().setColorModeProp(Diagram.GRADIENT_COLOR_MODE);
                    }else{
View Full Code Here

Examples of com.sun.star.awt.XRadioButton

        }
    }
   
    public void setConvertDialogControls(){
        if(m_xConvertDialog != null){
            XRadioButton xRadioButton2          = null;
            XControl xControl                   = null;
            String disabledOptionButton         = "convertOptionButton";
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xConvertDialog);
            if(xControlContainer != null){
                if(getController().getGroupType() == Controller.ORGANIGROUP){
                    if(getController().getDiagramType() == Controller.SIMPLEORGANIGRAM){
                        xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton2"));
                        xRadioButton2.setState(true);
                        disabledOptionButton += 1;
                    }
                    if(getController().getDiagramType() == Controller.HORIZONTALORGANIGRAM)
                        disabledOptionButton += 2;
                    if(getController().getDiagramType() == Controller.TABLEHIERARCHYDIAGRAM)
                        disabledOptionButton += 3;
                    //if(getController().getDiagramType() == Controller.ORGANIGRAM)
                    //    disabledOptionButton += 4;
                    if(getController().getDiagramType() != Controller.ORGANIGRAM){
                        xControl = (XControl) UnoRuntime.queryInterface(XControl.class, xControlContainer.getControl(disabledOptionButton));
                        enableControl(xControl, false);
                    }else{
                        XListBox xListBoxOfConvertDialog = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("lastHorLevelListBox"));
                        xListBoxOfConvertDialog.selectItemPos(OrgChartTree.LASTHORLEVEL, true);
                    }
                }

                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP){
                    if(getController().getDiagramType() == Controller.VENNDIAGRAM){
                        xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton2"));
                        xRadioButton2.setState(true);
                        disabledOptionButton += 1;
                    }
                    if(getController().getDiagramType() == Controller.CYCLEDIAGRAM)
                        disabledOptionButton += 2;
                    if(getController().getDiagramType() == Controller.PYRAMIDDIAGRAM)
                        disabledOptionButton += 3;
                    if(getController().getDiagramType() == Controller.TARGETDIAGRAM)
                        disabledOptionButton += 4;
                    if(getController().getDiagramType() == Controller.CONTINUOUSBLOCKPROCESS) {
                        xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton6"));
                        xRadioButton2.setState(true);
                        disabledOptionButton += 5;
                    }
                    if(getController().getDiagramType() == Controller.STAGGEREDPROCESS) {
                        xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton5"));
                        xRadioButton2.setState(true);
                        disabledOptionButton += 6;
                    }
                    if(getController().getDiagramType() == Controller.BENDINGPROCESS) {
                        xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton5"));
                        xRadioButton2.setState(true);
                        disabledOptionButton += 7;
                    }
                    if(getController().getDiagramType() == Controller.UPWARDARROWPROCESS) {
                        xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton5"));
                        xRadioButton2.setState(true);
                        disabledOptionButton += 8;
                    }
                    xControl = (XControl) UnoRuntime.queryInterface(XControl.class, xControlContainer.getControl(disabledOptionButton));
                    enableControl(xControl, false);
                }
View Full Code Here

Examples of com.sun.star.awt.XRadioButton

        return -1;
    }
   
    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;
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.VENNDIAGRAM;
            }
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton2"));
            if(xRadioButton.getState() == true){
                if(getController().getGroupType() == Controller.ORGANIGROUP)
                    return Controller.HORIZONTALORGANIGRAM;
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.CYCLEDIAGRAM;
            }
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton3"));
            if(xRadioButton.getState() == true){
                if(getController().getGroupType() == Controller.ORGANIGROUP)
                    return Controller.TABLEHIERARCHYDIAGRAM;
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.PYRAMIDDIAGRAM;
            }
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton4"));
            if(xRadioButton.getState() == true){
                if(getController().getGroupType() == Controller.ORGANIGROUP)
                    return Controller.ORGANIGRAM;
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.TARGETDIAGRAM;
            }
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton5"));
            if(xRadioButton.getState() == true)
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.CONTINUOUSBLOCKPROCESS;
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton6"));
            if(xRadioButton.getState() == true)
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.STAGGEREDPROCESS;
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton7"));
            if(xRadioButton.getState() == true)
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.BENDINGPROCESS;
            xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton8"));
            if(xRadioButton.getState() == true)
                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP)
                    return Controller.UPWARDARROWPROCESS;
           
           
        }
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.