Class PaginationComponent.BeforeRefreshEvent

java.lang.Object
java.util.EventObject
io.jmix.ui.component.PaginationComponent.BeforeRefreshEvent
All Implemented Interfaces:
Serializable
Enclosing interface:
PaginationComponent

public static class PaginationComponent.BeforeRefreshEvent extends EventObject
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 preventRefresh(), for example:

 usersTable.getPagination().addBeforeRefreshListener(refreshEvent -> {
     // check modified data and prevent refresh
     refreshEvent.preventRefresh();
 });
 
See Also:
  • Field Details

    • refreshPrevented

      protected boolean refreshPrevented
  • Constructor Details

  • Method Details

    • getSource

      public PaginationComponent getSource()
      Overrides:
      getSource in class EventObject
    • preventRefresh

      public void preventRefresh()
      If invoked, the component will not refresh the data container.
    • isRefreshPrevented

      public boolean isRefreshPrevented()