public static class RowsCount.BeforeRefreshEvent
extends java.util.EventObject
preventRefresh(),
for example:
table.getRowsCount().addBeforeDatasourceRefreshListener(event -> {
if (event.getDatasource().isModified()) {
showNotification("Save changes before going to another page");
event.preventRefresh();
}
});
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
refreshPrevented |
| Constructor and Description |
|---|
BeforeRefreshEvent(RowsCount source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRefreshPrevented() |
void |
preventRefresh()
If invoked, the component will not refresh the datasource.
|
public BeforeRefreshEvent(RowsCount source)