Package com.vaadin.ui
Interface ItemCaptionGenerator<T>
-
- Type Parameters:
T- item type
- All Superinterfaces:
java.util.function.Function<T,java.lang.String>,java.io.Serializable,SerializableFunction<T,java.lang.String>
- 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 ItemCaptionGenerator<T> extends SerializableFunction<T,java.lang.String>
ItemCaptionGeneratorcan be used to customize the string shown to the user for an item.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
ComboBox.setItemCaptionGenerator(ItemCaptionGenerator)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringapply(T item)Gets a caption for theitem.
-