Class FileUploadProgressEvent<C extends com.vaadin.flow.component.Component>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
io.jmix.flowui.kit.component.upload.event.FileUploadProgressEvent<C>
- Type Parameters:
C
- type of upload field
- All Implemented Interfaces:
Serializable
public class FileUploadProgressEvent<C extends com.vaadin.flow.component.Component>
extends com.vaadin.flow.component.ComponentEvent<C>
Event is fired when
ProgressUpdateEvent
of Upload
is occurred. See
Upload.addProgressListener(ComponentEventListener)
for details.- See Also:
-
ProgressUpdateEvent
- Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionprotected final long
protected final long
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
readBytes
protected final long readBytes -
contentLength
protected final long contentLength
-
-
Constructor Details
-
FileUploadProgressEvent
-
-
Method Details
-
getReadBytes
public long getReadBytes()- Returns:
- transferred bytes for the current update
-
getContentLength
public long getContentLength()- Returns:
- total file size or
-1
if unknown
-