We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.ui.
Class ComboBox.DeclarativeStyleGenerator<T>
- java.lang.Object
-
- com.vaadin.ui.ComboBox.DeclarativeStyleGenerator<T>
-
Type Parameters:
T
- item typeAll 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:
-
-
Constructor Summary
Constructors Constructor Description DeclarativeStyleGenerator(StyleGenerator<T> fallback)
-
Method Summary
All Methods Modifier and Type Method Description String
apply(T item)
Gets a class name for the
item
.protected void
setStyle(T item, String style)
Sets a
style
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 the
item
.
-
-