Package io.jmix.flowui.component
Class PaginationComponent.BeforeRefreshEvent<T extends AbstractPagination>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<T>
io.jmix.flowui.component.PaginationComponent.BeforeRefreshEvent<T>
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- PaginationComponent<T extends AbstractPagination>
public static class PaginationComponent.BeforeRefreshEvent<T extends AbstractPagination>
extends com.vaadin.flow.component.ComponentEvent<T>
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:
pagination.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 com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
refreshPrevented
protected boolean refreshPrevented
-
-
Constructor Details
-
BeforeRefreshEvent
-
-
Method Details
-
preventRefresh
public void preventRefresh()If invoked, the component will not refresh the data container. -
isRefreshPrevented
public boolean isRefreshPrevented()- Returns:
true
if data refresh is prevented
-