Class UHFinishedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<UploadHelper>
org.vaadin.addons.f0rce.uploadhelper.events.UHFinishedEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UHFailedEvent, UHSucceededEvent

public class UHFinishedEvent
extends com.vaadin.flow.component.ComponentEvent<UploadHelper>
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    UHFinishedEvent​(UploadHelper source, java.lang.String fileName, java.lang.String mimeType, long length)
    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

    • UHFinishedEvent

      public UHFinishedEvent​(UploadHelper source, java.lang.String fileName, java.lang.String mimeType, long length)
      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
      length - 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