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.

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UHProgressUpdateEvent

      public UHProgressUpdateEvent​(UploadHelper source, long readBytes, long contentLength)
      Event constructor method to construct a new progress event.
      Parameters:
      source - the source of the file
      readBytes - bytes transferred
      contentLength - total size of file currently being uploaded, -1 if unknown
  • Method Details

    • getUpload

      public UploadHelper 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