Class DataCommunicator.Filter<F>

  • Type Parameters:
    F - filter's type
    All Implemented Interfaces:
    Serializable
    Enclosing class:
    DataCommunicator<T>

    public static final class DataCommunicator.Filter<F>
    extends Object
    implements Serializable
    Wraps the component's filter object with the meta information whether this filter changing should trigger the item count change event.
    See Also:
    Serialized Form
    • Constructor Detail

      • Filter

        public Filter​(F filterObject)
        Creates the filter object and sets it notify item count change listeners by default.
        Parameters:
        filterObject - filter object of a component
      • Filter

        public Filter​(F filterObject,
                      boolean notifyOnChange)
        Creates the filter object and sets its lifespan.
        Parameters:
        filterObject - filter object of a component
        notifyOnChange - if true, then the data communicator will fire the item count change event as soon as filter change modifies the item count. If false, the item count change event won't be fired, even if the item count will be changed as a result of filtering.
    • Method Detail

      • getFilterObject

        public F 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. Returns false, the item count change event won't be fired, even if the item count will be changed as a result of filtering.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object