}
@Override
protected void setup() {
{
ComboBox cb = new ComboBox();
cb.addContainerProperty("icon", Resource.class, null);
cb.setItemIconPropertyId("icon");
Item item = cb.addItem("FI");
item.getItemProperty("icon").setValue(
new ThemeResource("../tests-tickets/icons/fi.gif"));
item = cb.addItem("SE");
item.getItemProperty("icon").setValue(
new ThemeResource("../tests-tickets/icons/se.gif"));
addComponent(cb);
}
{
ComboBox cb = new ComboBox();
cb.addContainerProperty("icon", Resource.class, null);
cb.setItemIconPropertyId("icon");
Item item = cb.addItem("Finland");
item.getItemProperty("icon").setValue(
new ThemeResource("../tests-tickets/icons/fi.gif"));
item = cb.addItem("Australia");
item.getItemProperty("icon").setValue(
new ThemeResource("../tests-tickets/icons/au.gif"));
item = cb.addItem("Hungary");
item.getItemProperty("icon").setValue(
new ThemeResource("../tests-tickets/icons/hu.gif"));
cb.setValue("Hungary");
addComponent(cb);
}
}