Interface LookupFieldFilter<FILTERTYPE>

Type Parameters:
FILTERTYPE - the type of the filter value produced by this component

public interface LookupFieldFilter<FILTERTYPE>
Class for the custom filter component The component need to call manually the filter action. For example
 filterButton.addClickListener(e -> {
    if (fieldFilterAction != null) {
       fieldFilterAction.filter(new FILTERTYPE);
    }
 });
 
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.Component
    Returns the component used to render the filter.
    void
    Sets the action that the filter component calls to filter the grid.
  • Method Details

    • getComponent

      com.vaadin.flow.component.Component getComponent()
      Returns the component used to render the filter.
      Returns:
      Filter component
    • setFilterAction

      void setFilterAction(LookupFieldFilterAction<FILTERTYPE> filterAction)
      Sets the action that the filter component calls to filter the grid.
      Parameters:
      filterAction - action to call when you want to filter the grid