com.vaadin.flow.component.upload.
Class FinishedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Upload>
-
- com.vaadin.flow.component.upload.FinishedEvent
-
All Implemented Interfaces:
Direct Known Subclasses:
public class FinishedEvent extends ComponentEvent<Upload>
Upload.FinishedEvent is sent when the upload receives a file, regardless of whether the reception was successful or failed. If you wish to distinguish between the two cases, use either SucceededEvent or FailedEvent, which are both subclasses of the FinishedEvent.
Author:
Vaadin Ltd.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description FinishedEvent(Upload source, String fileName, String MIMEType, long length)
-
Method Summary
All Methods Modifier and Type Method and Description long
getContentLength()
Gets the length of the file.
String
getFileName()
Gets the file name.
String
getMIMEType()
Gets the MIME Type of the file.
Upload
getUpload()
Uploads where the event occurred.
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Method Detail
-
getUpload
public Upload getUpload()
Uploads where the event occurred.
Returns:
the Source of the event.
-
getFileName
public String getFileName()
Gets the file name.
Returns:
the fileName.
-
getMIMEType
public String getMIMEType()
Gets the MIME Type of the file.
Returns:
the MIME type.
-
getContentLength
public long getContentLength()
Gets the length of the file.
Returns:
the length.
-
-