Search in sources :

Example 1 with ConfigurableFilterDataProvider

use of com.vaadin.data.provider.ConfigurableFilterDataProvider in project catma by forTEXT.

the class ActionGridComponent method handleSearchValueChange.

@SuppressWarnings("unchecked")
private void handleSearchValueChange(ValueChangeEvent<String> valueChange) {
    DataProvider<?, ?> dataProvider = this.dataGrid.getDataProvider();
    if (dataProvider instanceof ConfigurableFilterDataProvider) {
        @SuppressWarnings("rawtypes") ConfigurableFilterDataProvider filterableDp = (ConfigurableFilterDataProvider) dataProvider;
        filterableDp.setFilter(searchFilterProvider.createSearchFilter(valueChange.getValue()));
    }
}
Also used : ConfigurableFilterDataProvider(com.vaadin.data.provider.ConfigurableFilterDataProvider)

Aggregations

ConfigurableFilterDataProvider (com.vaadin.data.provider.ConfigurableFilterDataProvider)1