@FunctionalInterface
public static interface RowsCount.BeforeRefreshListener
You can prevent the datasource refresh by invoking RowsCount.BeforeRefreshEvent.preventRefresh()
,
for example:
table.getRowsCount().addBeforeDatasourceRefreshListener(event -> {
if (event.getDatasource().isModified()) {
showNotification("Save changes before going to another page");
event.preventRefresh();
}
});
Modifier and Type | Method and Description |
---|---|
void |
beforeDatasourceRefresh(RowsCount.BeforeRefreshEvent event) |
void beforeDatasourceRefresh(RowsCount.BeforeRefreshEvent event)