Class UHStartedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<UploadHelper>
org.vaadin.addons.f0rce.uploadhelper.events.UHStartedEvent
- All Implemented Interfaces:
java.io.Serializable
public class UHStartedEvent extends com.vaadin.flow.component.ComponentEvent<UploadHelper>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UHStartedEvent(UploadHelper source, java.lang.String fileName, java.lang.String mimeType, long contentLength)
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
-
UHStartedEvent
public UHStartedEvent(UploadHelper source, java.lang.String fileName, java.lang.String mimeType, long contentLength)Create an instance of the event.- Parameters:
source
- the source of the filefileName
- the received file namemimeType
- the MIME type of the received filecontentLength
- 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 of the file that is being uploaded
-