com.vaadin.ui
Interface ComboBox.ItemStyleGenerator

All Superinterfaces:
java.io.Serializable
Enclosing class:
ComboBox

public static interface ComboBox.ItemStyleGenerator
extends java.io.Serializable

ItemStyleGenerator can be used to add custom styles to combo box items shown in the popup. The CSS class name that will be added to the item style names is v-filterselect-item-[style name].

Since:
7.5.6
See Also:
ComboBox.setItemStyleGenerator(ItemStyleGenerator)

Method Summary
 java.lang.String getStyle(ComboBox source, java.lang.Object itemId)
          Called by ComboBox when an item is painted.
 

Method Detail

getStyle

java.lang.String getStyle(ComboBox source,
                          java.lang.Object itemId)
Called by ComboBox when an item is painted.

Parameters:
source - the source combo box
itemId - The itemId of the item to be painted. Can be null if null selection is allowed.
Returns:
The style name to add to this item. (the CSS class name will be v-filterselect-item-[style name]


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.