Package com.sun.star.awt

Examples of com.sun.star.awt.XComboBox.removeItems()


            Object oComboBox = xControlContainer.getControl("StyleComboBox");
            XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class, oComboBox);
            if(getController().getDiagramType() == Controller.CYCLEDIAGRAM){
                setImageColorOfControlDialog(10079487);
                xComboBox.removeItems((short)1, (short)3);
                String[] newStyles = { getDialogPropertyValue("Strings", "CycleStyleComboBox1"),
                                       getDialogPropertyValue("Strings", "CycleStyleComboBox2"),
                                       getDialogPropertyValue("Strings", "CycleStyleComboBox3")
                                     };
                xComboBox.addItems(newStyles, (short)1);
View Full Code Here


                                     };
                xComboBox.addItems(newStyles, (short)1);
            }
            if(getController().getDiagramType() == Controller.PYRAMIDDIAGRAM){
                setImageColorOfControlDialog(10079487);
                xComboBox.removeItems((short)1, (short)3);
                String[] newStyles = { getDialogPropertyValue("Strings", "PyramidStyleComboBox1"),
                                       getDialogPropertyValue("Strings", "PyramidStyleComboBox2"),
                                       getDialogPropertyValue("Strings", "PyramidStyleComboBox3")
                                     };
                xComboBox.addItems(newStyles, (short)1);
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.