Class FileUploadFinishedEvent<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.FileUploadFinishedEvent<C>
Type Parameters:
C - type of upload field
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FileUploadFailedEvent, FileUploadSucceededEvent

public class FileUploadFinishedEvent<C extends com.vaadin.flow.component.Component> extends com.vaadin.flow.component.ComponentEvent<C>
Event is fired when FinishedEvent of Upload is occurred. See Upload.addFinishedListener(ComponentEventListener) for details.
See Also:
  • Field Details

    • length

      protected final long length
    • mimeType

      protected final String mimeType
    • fileName

      protected final String fileName
  • Constructor Details

    • FileUploadFinishedEvent

      public FileUploadFinishedEvent(C source, String fileName, String mimeType, long length)
  • Method Details

    • getFileName

      public String getFileName()
      Returns:
      the file name
    • getMimeType

      public String getMimeType()
      Returns:
      the MIME Type of the file
    • getContentLength

      public long getContentLength()
      Returns:
      the length of the file