Package com.vaadin.ui
Interface ComboBox.ItemStyleGenerator
-
- All Superinterfaces:
Serializable
- Enclosing class:
- ComboBox
public static interface ComboBox.ItemStyleGenerator extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getStyle(ComboBox source, Object itemId)
Called by ComboBox when an item is painted.
-
-
-
Method Detail
-
getStyle
String getStyle(ComboBox source, Object itemId)
Called by ComboBox when an item is painted.- Parameters:
source
- the source combo boxitemId
- The itemId of the item to be painted. Can benull
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]
-
-