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()));
}
}
Aggregations