com.vaadin.data.

Interface Container.SimpleFilterable

    • Method Detail

      • addContainerFilter

        void addContainerFilter(Object propertyId,
                                String filterString,
                                boolean ignoreCase,
                                boolean onlyMatchPrefix)

        Add a filter for given property.

        The API Filterable#addContainerFilter(Filter) is recommended instead of this method. A SimpleStringFilter can be used with the new API to implement the old string filtering functionality.

        The filter accepts items for which toString() of the value of the given property contains or starts with given filterString. Other items are not visible in the container when filtered.

        If a container has multiple filters, only items accepted by all filters are visible.

        Parameters:

        propertyId - Property for which the filter is applied to.

        filterString - String that must match the value of the property

        ignoreCase - Determine if the casing can be ignored when comparing strings.

        onlyMatchPrefix - Only match prefixes; no other matches are included.

      • removeAllContainerFilters

        void removeAllContainerFilters()

        Remove all filters from all properties.

      • removeContainerFilters

        void removeContainerFilters(Object propertyId)

        Remove all filters from the given property.

        Parameters:

        propertyId - for which to remove filters