Class StandardDetailView.AfterSaveEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<View<?>>
io.jmix.flowui.view.StandardDetailView.AfterSaveEvent
All Implemented Interfaces:
Serializable
Enclosing class:
StandardDetailView<T>

public static class StandardDetailView.AfterSaveEvent extends com.vaadin.flow.component.ComponentEvent<View<?>>
Event sent after saving the view data context.
Use this event listener to notify users after save, for example:
     @Subscribe
     protected void onAfterSave(AfterSaveEvent event) {
         notifications.show("Saved");
     }
 
See Also:
  • Field Details

    • entityReloaded

      protected boolean entityReloaded
  • Constructor Details

    • AfterSaveEvent

      public AfterSaveEvent(View source, boolean entityReloaded)
  • Method Details

    • getDataContext

      public DataContext getDataContext()
      Returns:
      data context of the view
    • isEntityReloaded

      public boolean isEntityReloaded()
      Returns:
      true if reload and merge to data context was performed for saved entity, false otherwise