Package com.vaadin.v7.data.util.filter
Class Or
- java.lang.Object
-
- com.vaadin.v7.data.util.filter.AbstractJunctionFilter
-
- com.vaadin.v7.data.util.filter.Or
-
- All Implemented Interfaces:
Container.Filter,Serializable
@Deprecated public final class Or extends AbstractJunctionFilter
Deprecated.As of 8.0, the whole filtering feature is integrated intoDataProvider. For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders, filters are specific to the implementation.A compoundContainer.Filterthat accepts an item if any of its filters accept the item. If no filters are given, the filter should reject all items. This filter also directly supports in-memory filtering when all sub-filters do so.- Since:
- 6.6
- See Also:
And, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.v7.data.util.filter.AbstractJunctionFilter
filters
-
-
Constructor Summary
Constructors Constructor Description Or(Container.Filter... filters)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanappliesToProperty(Object propertyId)Deprecated.Returns true if a change in the named property may affect the filtering result.booleanpassesFilter(Object itemId, Item item)Deprecated.Check if an item passes the filter (in-memory filtering).-
Methods inherited from class com.vaadin.v7.data.util.filter.AbstractJunctionFilter
equals, getFilters, hashCode
-
-
-
-
Constructor Detail
-
Or
public Or(Container.Filter... filters)
Deprecated.- Parameters:
filters- filters of which the Or filter will be composed
-
-
Method Detail
-
passesFilter
public boolean passesFilter(Object itemId, Item item) throws UnsupportedFilterException
Deprecated.Description copied from interface:Container.FilterCheck if an item passes the filter (in-memory filtering).- Parameters:
itemId- identifier of the item being filtered; may be null when the item is being added to the containeritem- the item being filtered- Returns:
- true if the item is accepted by this filter
- Throws:
UnsupportedFilterException
-
appliesToProperty
public boolean appliesToProperty(Object propertyId)
Deprecated.Returns true if a change in the named property may affect the filtering result. If some of the sub-filters are not in-memory filters, true is returned. By default, all sub-filters are iterated to check if any of them applies. If there are no sub-filters, true is returned as an empty Or rejects all items.- Specified by:
appliesToPropertyin interfaceContainer.Filter- Overrides:
appliesToPropertyin classAbstractJunctionFilter- Returns:
- true if the filtering result may/does change based on changes to the property identified by propertyId
-
-