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:
  • Field Details

    • readBytes

      protected final long readBytes
    • contentLength

      protected final long contentLength
  • Constructor Details

    • FileUploadProgressEvent

      public FileUploadProgressEvent(C source, long readBytes, long contentLength)
  • 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