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.

    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

    • 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 file
      fileName - the received file name
      mimeType - the MIME type of the received file
      contentLength - the length of the received file
  • Method Details

    • getUpload

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