Package io.jmix.ui.component
Class PaginationComponent.BeforeRefreshEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.component.PaginationComponent.BeforeRefreshEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- PaginationComponent
The event that is fired before refreshing the data when the user clicks next, previous, etc.
You can prevent the data container refresh by invoking
You can prevent the data container refresh by invoking
preventRefresh()
,
for example:
usersTable.getPagination().addBeforeRefreshListener(refreshEvent -> {
// check modified data and prevent refresh
refreshEvent.preventRefresh();
});
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
If invoked, the component will not refresh the data container.Methods inherited from class java.util.EventObject
toString
-
Field Details
-
refreshPrevented
protected boolean refreshPrevented
-
-
Constructor Details
-
BeforeRefreshEvent
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
preventRefresh
public void preventRefresh()If invoked, the component will not refresh the data container. -
isRefreshPrevented
public boolean isRefreshPrevented()
-