Interface ItemStyleGenerator

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ItemStyleGenerator extends Serializable
ItemStyleGenerator can be used to add custom styles to combo box items shown in the overlay. The CSS class name that will be added to the item style names is v-filterselect-item-[style name].
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getStyle(FComboBox source, Object itemId)
    Called by combo box when an item is rendered.
  • Method Details

    • getStyle

      String getStyle(FComboBox source, Object itemId)
      Called by combo box when an item is rendered.
      Parameters:
      source - the source combo box
      itemId - The itemId of the item to be rendered. 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]