Class UHProgressUpdateEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<UploadHelper>
org.vaadin.addons.f0rce.uploadhelper.events.UHProgressUpdateEvent
- All Implemented Interfaces:
java.io.Serializable
public class UHProgressUpdateEvent extends com.vaadin.flow.component.ComponentEvent<UploadHelper>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UHProgressUpdateEvent(UploadHelper source, long readBytes, long contentLength)
Event constructor method to construct a new progress event. -
Method Summary
Modifier and Type Method Description long
getContentLength()
Get total file size.long
getReadBytes()
Get bytes transferred for this update.UploadHelper
getUpload()
Upload where the event occurred.
-
Constructor Details
-
UHProgressUpdateEvent
Event constructor method to construct a new progress event.- Parameters:
source
- the source of the filereadBytes
- bytes transferredcontentLength
- total size of file currently being uploaded, -1 if unknown
-
-
Method Details
-
getUpload
Upload where the event occurred.- Returns:
- the Source of the event
-
getReadBytes
public long getReadBytes()Get bytes transferred for this update.- Returns:
- bytes transferred
-
getContentLength
public long getContentLength()Get total file size.- Returns:
- total file size or -1 if unknown
-