Package com.vaadin.ui
Interface ComboBox.CaptionFilter
-
- All Superinterfaces:
java.util.function.BiPredicate<java.lang.String,java.lang.String>,java.io.Serializable,SerializableBiPredicate<java.lang.String,java.lang.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<java.lang.String,java.lang.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(java.lang.String itemCaption, java.lang.String filterText)Check item caption against entered text.
-
-
-
Method Detail
-
test
boolean test(java.lang.String itemCaption, java.lang.String filterText)Check item caption against entered text.- Specified by:
testin interfacejava.util.function.BiPredicate<java.lang.String,java.lang.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
-
-