Package 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 checkComboBoxitem captions against user typed strings.- Since:
- 8.0
- See Also:
ComboBox.setItems(CaptionFilter, Collection),ComboBox.setItems(CaptionFilter, Object[])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleantest(String itemCaption, String filterText)Check item caption against entered text.-
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
-
-
-
Method Detail
-
test
boolean test(String itemCaption, String filterText)
Check item caption against entered text.- Specified by:
testin interfaceBiPredicate<String,String>- Parameters:
itemCaption- the caption of the item to filter, notnullfilterText- user entered filter, notnull- Returns:
trueif item passes the filter and should be listed,falseotherwise
-
-