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 SummaryFieldsFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanvoidIf invoked, the component will not refresh the data container.Methods inherited from class com.vaadin.flow.component.ComponentEventgetSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObjecttoString
- 
Field Details- 
refreshPreventedprotected boolean refreshPrevented
 
- 
- 
Constructor Details- 
BeforeRefreshEvent
 
- 
- 
Method Details- 
preventRefreshpublic void preventRefresh()If invoked, the component will not refresh the data container.
- 
isRefreshPreventedpublic boolean isRefreshPrevented()- Returns:
- trueif data refresh is prevented
 
 
-