T - item typeprotected static class ComboBox.DeclarativeStyleGenerator<T> extends Object implements StyleGenerator<T>
Provides a straightforward mapping between an item and its style.
| Constructor and Description |
|---|
DeclarativeStyleGenerator(StyleGenerator<T> fallback) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(T item)
Gets a class name for the
item. |
protected void |
setStyle(T item,
String style)
Sets a
style for the item. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidentitypublic DeclarativeStyleGenerator(StyleGenerator<T> fallback)
public String apply(T item)
StyleGeneratoritem.Copyright © 2018 Vaadin Ltd. All rights reserved.