Class DraftsFacet.DraftRestoredEvent

java.lang.Object
java.util.EventObject
io.jmix.uirecoveryflowui.facet.DraftsFacet.DraftRestoredEvent
All Implemented Interfaces:
Serializable
Enclosing interface:
DraftsFacet

public static class DraftsFacet.DraftRestoredEvent extends EventObject
Event fired after the facet restored a draft into the owning view's data context, so that the view can react to the restored state.

Fired only when a draft was actually applied to at least one instance. It is not fired when the user discarded the draft or postponed the decision, when the payload turned out to be unusable, when every entry of it was skipped, or when a restore delegate prevented the facet's own restore.

See Also:
  • Field Details

    • draft

      protected final ViewDraft draft
    • restoredEntities

      protected final List<Object> restoredEntities
  • Constructor Details

  • Method Details

    • getSource

      public DraftsFacet getSource()
      Overrides:
      getSource in class EventObject
    • getDraft

      public ViewDraft getDraft()
      Returns the draft that was restored.
    • getRestoredEntities

      public List<Object> getRestoredEntities()
      Returns the managed instances the restore touched.