Examples of selectItemPos()


Examples of com.sun.star.awt.XListBox.selectItemPos()

            }else{
                ((XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("fontSizeOptionButton"))).setState(true);
                XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
                //short selectedItemPos = fontSizeLB.getSelectedItemPos();
                short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
                fontSizeLB.selectItemPos(index, true);
                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
View Full Code Here

Examples of com.sun.star.awt.XListBox.selectItemPos()

                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
                fontSizeLB.selectItemPos(index, true);

            }
            enableFontSizeListBox(!isFitText);
            ((XCheckBox) UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("modifyTextColorCheckBox"))).setState((short)0);
            enableTextColorImageControl(false);
View Full Code Here

Examples of com.sun.star.awt.XListBox.selectItemPos()

            float newFontSize = 0;
            if(!isFitText)
                newFontSize = FontSize._getFontSize(fontSizeLB.getSelectedItemPos());
            //set no mark in FontSize ListBox
            short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
            fontSizeLB.selectItemPos(index, true);
            String label = fontSizeLB.getSelectedItem();
            if(label.startsWith("*"))
                label = " " + label.substring(1);
            fontSizeLB.removeItems(index, (short)1);
            fontSizeLB.addItem(label, index);
View Full Code Here

Examples of com.sun.star.awt.XListBox.selectItemPos()

            }else{
                ((XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("fontSizeOptionButton"))).setState(true);
                XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
                //short selectedItemPos = fontSizeLB.getSelectedItemPos();
                short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
                fontSizeLB.selectItemPos(index, true);
                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
View Full Code Here

Examples of com.sun.star.awt.XListBox.selectItemPos()

                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
                fontSizeLB.selectItemPos(index, true);

            }
            enableFontSizeListBox(!isFitText);
            ((XCheckBox)UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("modifyTextColorCheckBox"))).setState((short)0);
            enableTextColorImageControl(false);
View Full Code Here

Examples of com.sun.star.awt.XListBox.selectItemPos()

        }
        if(m_xPropsDialog != null){
            short style = getController().getDiagram().getStyleProp();
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xPropsDialog);
            XListBox styleListBox = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("listBox"));
            styleListBox.selectItemPos(style, true);
           
            if(getController().getGroupType() == Controller.ORGANIGROUP)
                setOrganigramPropsDialog(style);
            if (getController().getDiagramType() == Controller.VENNDIAGRAM)
                setVennDiagramPropsDialog(style);
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.