Class UHFinishedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<UploadHelper>
org.vaadin.addons.f0rce.uploadhelper.events.UHFinishedEvent
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UHFailedEvent
,UHSucceededEvent
public class UHFinishedEvent extends com.vaadin.flow.component.ComponentEvent<UploadHelper>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UHFinishedEvent(UploadHelper source, java.lang.String fileName, java.lang.String mimeType, long length)
Create an instance of the event. -
Method Summary
Modifier and Type Method Description long
getContentLength()
Get the length of the file.java.lang.String
getFileName()
Get the file name.java.lang.String
getMIMEType()
Get the MIME Type of the file.UploadHelper
getUpload()
Upload where the event occurred.
-
Constructor Details
-
UHFinishedEvent
public UHFinishedEvent(UploadHelper source, java.lang.String fileName, java.lang.String mimeType, long length)Create an instance of the event.- Parameters:
source
- the source of the filefileName
- the received file namemimeType
- the MIME type of the received filelength
- the length of the received file
-
-
Method Details
-
getUpload
Upload where the event occurred.- Returns:
- the Source of the event
-
getFileName
public java.lang.String getFileName()Get the file name.- Returns:
- the file name
-
getMIMEType
public java.lang.String getMIMEType()Get the MIME Type of the file.- Returns:
- the MIME type
-
getContentLength
public long getContentLength()Get the length of the file.- Returns:
- the length
-