Package com.vaadin.ui
Class ComboBox.DeclarativeStyleGenerator<T>
- java.lang.Object
-
- com.vaadin.ui.ComboBox.DeclarativeStyleGenerator<T>
-
- Type Parameters:
T
- item type
- All Implemented Interfaces:
SerializableFunction<T,String>
,StyleGenerator<T>
,Serializable
,Function<T,String>
protected static class ComboBox.DeclarativeStyleGenerator<T> extends Object implements StyleGenerator<T>
Item style generator class for declarative support.Provides a straightforward mapping between an item and its style.
- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeclarativeStyleGenerator(StyleGenerator<T> fallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(T item)
Gets a class name for theitem
.protected void
setStyle(T item, String style)
Sets astyle
for theitem
.
-
-
-
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 theitem
.
-
-