Examples of XComboBox


Examples of com.sun.star.awt.XComboBox

            if (items[i] != null)
                xlist.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
    }
   
    public static void fillComboBox(Object list, Object[] items, Renderer renderer) {
        XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class,list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[] {});
        for (short i = 0; i < items.length; i++)
            if (items[i] != null)
                xComboBox.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
    }
View Full Code Here

Examples of com.sun.star.awt.XComboBox

        }
    }

    public static void fillComboBox(Object list, Object[] items, Renderer renderer)
    {
        XComboBox xComboBox = UnoRuntime.queryInterface(XComboBox.class, list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), PropertyNames.STRING_ITEM_LIST, new String[]
                {
                });
        for (short i = 0; i < items.length; i++)
        {
            if (items[i] != null)
            {
                xComboBox.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
            }
        }
    }
View Full Code Here

Examples of com.sun.star.awt.XComboBox

        return xListBox;
    }
   
   
    public XComboBox insertComboBox(int _nPosX, int _nPosY, int _nWidth){
        XComboBox xComboBox = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "ComboBox");
           
            String[] sStringItemList = new String[]{"First Entry", "Second Entry", "Third Entry", "Fourth Entry"};
View Full Code Here

Examples of com.sun.star.awt.XComboBox

        }
    }

    public static void fillComboBox(Object list, Object[] items, Renderer renderer)
    {
        XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class, list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[]
                {
                });
        for (short i = 0; i < items.length; i++)
        {
            if (items[i] != null)
            {
                xComboBox.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
            }
        }
    }
View Full Code Here

Examples of com.sun.star.awt.XComboBox

        return xListBox;
    }
   
   
    public XComboBox insertComboBox(int _nPosX, int _nPosY, int _nWidth){
        XComboBox xComboBox = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "ComboBox");
           
            String[] sStringItemList = new String[]{"First Entry", "Second Entry", "Third Entry", "Fourth Entry"};
View Full Code Here

Examples of com.sun.star.awt.XComboBox

               
               
            }

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

Examples of com.sun.star.awt.XComboBox

        return xListBox;
    }
   
   
    public XComboBox insertComboBox(int _nPosX, int _nPosY, int _nWidth){
        XComboBox xComboBox = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "ComboBox");
           
            String[] sStringItemList = new String[]{"First Entry", "Second Entry", "Third Entry", "Fourth Entry"};
View Full Code Here

Examples of com.sun.star.awt.XComboBox

        return xListBox;
    }
   
   
    public XComboBox insertComboBox(int _nPosX, int _nPosY, int _nWidth){
        XComboBox xComboBox = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "ComboBox");
           
            String[] sStringItemList = new String[]{"First Entry", "Second Entry", "Third Entry", "Fourth Entry"};
View Full Code Here

Examples of com.sun.star.awt.XComboBox

            if (items[i] != null)
                xlist.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
    }
   
    public static void fillComboBox(Object list, Object[] items, Renderer renderer) {
        XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class,list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[] {});
        for (short i = 0; i < items.length; i++)
            if (items[i] != null)
                xComboBox.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
    }
View Full Code Here

Examples of com.sun.star.awt.XComboBox

        }
    }

    public static void fillComboBox(Object list, Object[] items, Renderer renderer)
    {
        XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class, list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[]
                {
                });
        for (short i = 0; i < items.length; i++)
        {
            if (items[i] != null)
            {
                xComboBox.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
            }
        }
    }
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.