com.vaadin.ui.
Interface ComboBox.CaptionFilter
-
All Superinterfaces:
BiPredicate<String,String>
,Serializable
,SerializableBiPredicate<String,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 static interface ComboBox.CaptionFilter extends SerializableBiPredicate<String,String>
Predicate to check
ComboBox
item captions against user typed strings.Since:
8.0
See Also:
ComboBox.setItems(CaptionFilter, Collection)
,ComboBox.setItems(CaptionFilter, Object[])
-
-
Method Detail
-
test
boolean test(String itemCaption, String filterText)
Check item caption against entered text.
Specified by:
test
in interfaceBiPredicate<String,String>
Parameters:
itemCaption
- the caption of the item to filter, notnull
filterText
- user entered filter, notnull
Returns:
true
if item passes the filter and should be listed,false
otherwise
-
-