Class PdfViewer.DocumentErrorEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<PdfViewer>
com.vaadin.flow.component.pdfviewer.PdfViewer.DocumentErrorEvent
All Implemented Interfaces:
Serializable
Enclosing class:
PdfViewer

@DomEvent("document-error") public static class PdfViewer.DocumentErrorEvent extends ComponentEvent<PdfViewer>
Event fired when a document could not be loaded.
See Also:
  • Constructor Details

    • DocumentErrorEvent

      public DocumentErrorEvent(PdfViewer source, boolean fromClient, @EventData("event.detail.reason") String reason)
      Creates a new event.
      Parameters:
      source - the source component
      fromClient - true if the event originated from the client
      reason - the reason reported by the client, see DocumentErrorReason
  • Method Details

    • getReason

      public DocumentErrorReason getReason()
      Gets the reason why the document could not be loaded.
      Returns:
      the reason, or null if this version does not know the reported reason