Package com.vaadin.flow.data.provider
Class DataCommunicator.Filter<F>
java.lang.Object
com.vaadin.flow.data.provider.DataCommunicator.Filter<F>
- Type Parameters:
F
- filter's type
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DataCommunicator<T>
Wraps the component's filter object with the meta information whether
this filter changing should trigger the item count change event.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a filter object for this component.int
hashCode()
boolean
Returns whether to fire the item change event or not upon filter changing.
-
Constructor Details
-
Filter
Creates the filter object and sets it notify item count change listeners by default.- Parameters:
filterObject
- filter object of a component
-
Filter
Creates the filter object and sets its lifespan.- Parameters:
filterObject
- filter object of a componentnotifyOnChange
- iftrue
, then the data communicator will fire the item count change event as soon as filter change modifies the item count. Iffalse
, the item count change event won't be fired, even if the item count will be changed as a result of filtering.
-
-
Method Details
-
getFilterObject
Returns a filter object for this component.- Returns:
- filter object
-
isNotifyOnChange
public boolean isNotifyOnChange()Returns whether to fire the item change event or not upon filter changing.- Returns:
true
, then the data communicator will fire the item count change event as soon as filter change modifies the item count. Returnsfalse
, the item count change event won't be fired, even if the item count will be changed as a result of filtering.
-
equals
-
hashCode
public int hashCode()
-