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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDocumentErrorEvent(PdfViewer source, boolean fromClient, String reason) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionGets the reason why the document could not be loaded.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DocumentErrorEvent
public DocumentErrorEvent(PdfViewer source, boolean fromClient, @EventData("event.detail.reason") String reason) Creates a new event.- Parameters:
source- the source componentfromClient-trueif the event originated from the clientreason- the reason reported by the client, seeDocumentErrorReason
-
-
Method Details
-
getReason
Gets the reason why the document could not be loaded.- Returns:
- the reason, or
nullif this version does not know the reported reason
-