2

I would like to create combobox component with icon+caption items. But I have no idea how to do this. I found an example for this but it is vaadin-6 example and codes were not fully described. Can somebody support me complete example or some useful links ? Has somebody experience on doing like this ?

I also don't want to create with deprecated codes. Thanks.

Cataclysm
  • 7,592
  • 21
  • 74
  • 123

1 Answers1

4

This is vaadin7 version. Push the View Source (second icon) on the top right corner.

erwin
  • 205
  • 2
  • 10
  • How can I figure out `ExampleUtil.getISO3166Container()` , `ExampleUtil.iso3166_PROPERTY_NAME` and `ExampleUtil.iso3166_PROPERTY_FLAG`? I described **......and codes were not fully described** means to them. Thanks for your link sir. But I am still trouble how to start. – Cataclysm Aug 11 '14 at 07:21
  • You can set an icon for each item with setItemIcon(), or define an item property that provides the icon resource with setItemIconPropertyId(), in a fashion similar to captions. [Here](http://vaadin.com/download/release/6.1/6.1.0/docs/example-source/com/vaadin/demo/sampler/ExampleUtil.java.html) ExampleUtil – erwin Aug 11 '14 at 07:24
  • Oh ! Thank you for `ExampleUtil.java` link. It is what I want. Now I got complete codes. Thanks. – Cataclysm Aug 11 '14 at 07:45