ComboBox eidos = new ComboBox();
eidos.addItem("Renewal");
eidos.setItemIcon("Renewal", new ThemeResource("../../images/contact16.png"));
addComponent(eidos);
But if i use ListSelect instead i can’t see the icon.
ListSelect eidos = new ListSelect();
eidos.addItem("Renewal");
eidos.setItemIcon("Renewal", new ThemeResource("../../images/contact16.png"));
addComponent(eidos);
ListSelect is a implementation of the HTML tag while ComboBox is totally Vaadin-implemented component. In other words, ListSelect can only do what can do and I don’t think that it has the ability to show icons.
A quick google shows that you can add icons to :s with css backgrounds, but I don’t think it is a easy task adding those there. The biggest issue I see is to dynamically provide images to be loaded with css. It’s probably doable but I have a feeling that implementing a totally custom component would be easier (with the same base as ComboBox).