Package com.sun.star.awt

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


    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


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

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

    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

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

            Collections.sort(responses, new Comparer());
            fillItemsList();

            XComboBox xComboBox =
                     (XComboBox) UnoRuntime.queryInterface(XComboBox.class, xControlContainer.getControl(COMBO_PATH));
            xComboBox.addItem(currentHref, (short) 0);

            XTextComponent xComboText =
                     (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, xControlContainer
                              .getControl(COMBO_PATH));
            xComboText.setText(currentHref);
View Full Code Here

         {
            for (int i = filters.size() - 1; i >= 0; i--)
            {
               FilterType currentFilter = filters.get(i);
               String filterStr = currentFilter.getLocalizedName() + " [." + currentFilter.getFileExtension() + "]";
               xComboType.addItem(filterStr, (short) 0);
               if (i == 0)
               {
                  setEditFilterValue(filterStr);
               }
            }
View Full Code Here

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