@FunctionalInterface public static interface ComboBox.CaptionFilter extends SerializableBiPredicate<String,String>
ComboBox item captions against user typed
strings.ComboBox.setItems(CaptionFilter, Collection),
ComboBox.setItems(CaptionFilter, Object[])| Modifier and Type | Method and Description |
|---|---|
boolean |
test(String itemCaption,
String filterText)
Check item caption against entered text.
|
and, negate, orboolean test(String itemCaption, String filterText)
test in interface BiPredicate<String,String>itemCaption - the caption of the item to filter, not nullfilterText - user entered filter, not nulltrue if item passes the filter and should be listed,
false otherwiseCopyright © 2017 Vaadin Ltd. All rights reserved.