Add custom components to an OptionGroup

I am creating an OptionGroup in Vaadin and what I want to do is this. Instead of giving a plain text caption, I want to set another CustomComponent as its caption. So, I have an array of CustomComponents generated and the user needs to choose one out of these. So, is there any way to do this?

Unfortunately not, at least with standard Vaadin components. Check the Directory (
http://vaadin.com/directory
) if someone else has made a component for this already.