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.
Interface ComboBox.NewItemProvider<T>
-
All Superinterfaces:
Function<String,Optional<T>>
,Serializable
,SerializableFunction<String,Optional<T>>
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 static interface ComboBox.NewItemProvider<T> extends SerializableFunction<String,Optional<T>>
Provider function that adds a new item based on user input when the new items allowed mode is active. After the new item handling is complete, this function should return
Optional.of(text)
for the completion of automatic selection handling. If automatic selection is not wished for, always returnOptional.isEmpty()
.Since:
8.4