Class JmixFileUpload.FinishedEvent

java.lang.Object
java.util.EventObject
com.vaadin.event.ConnectorEvent
com.vaadin.ui.Component.Event
io.jmix.ui.widget.JmixFileUpload.FinishedEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JmixFileUpload.FailedEvent, JmixFileUpload.SucceededEvent
Enclosing class:
JmixFileUpload

public static class JmixFileUpload.FinishedEvent extends com.vaadin.ui.Component.Event
JmixFileUpload.FinishedEvent is sent when the upload receives a file, regardless of whether the reception was successful or failed. If you wish to distinguish between the two cases, use either SucceededEvent or FailedEvent, which are both subclasses of the FinishedEvent.
See Also:
  • Constructor Details

    • FinishedEvent

      public FinishedEvent(JmixFileUpload source, String fileName, String MIMEType, long contentLength)
      Parameters:
      source - the source of the file.
      fileName - the received file name.
      MIMEType - the MIME type of the received file.
      contentLength - the contentLength of the received file.
  • Method Details

    • getUpload

      public JmixFileUpload getUpload()
      Uploads where the event occurred.
      Returns:
      the Source of the event.
    • getFileName

      public String getFileName()
      Gets the file name.
      Returns:
      the fileName.
    • getMIMEType

      public String getMIMEType()
      Gets the MIME Type of the file.
      Returns:
      the MIME type.
    • getContentLength

      public long getContentLength()
      Gets the contentLength of the file.
      Returns:
      the contentLength.