Package com.vaadin.ui

Class ComboBox.DeclarativeStyleGenerator<T>

    • Constructor Detail

      • DeclarativeStyleGenerator

        public DeclarativeStyleGenerator​(StyleGenerator<T> fallback)
    • Method Detail

      • apply

        public String apply​(T item)
        Description copied from interface: StyleGenerator
        Gets a class name for the item.
        Specified by:
        apply in interface Function<T,​String>
        Specified by:
        apply in interface StyleGenerator<T>
        Parameters:
        item - the item to get the class name for
        Returns:
        the generated class name
      • setStyle

        protected void setStyle​(T item,
                                String style)
        Sets a style for the item.
        Parameters:
        item - a data item
        style - a style for the item