@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, or
boolean test(String itemCaption, String filterText)
test
in interface BiPredicate<String,String>
itemCaption
- the caption of the item to filter, not null
filterText
- user entered filter, not null
true
if item passes the filter and should be listed,
false
otherwiseCopyright © 2017 Vaadin Ltd. All rights reserved.