Package com.vaadin.ui

Class Upload.StartedEvent

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    Upload

    public static class Upload.StartedEvent
    extends Component.Event
    Upload.StartedEvent event is sent when the upload is started to received.
    Since:
    5.0
    Author:
    Vaadin Ltd.
    See Also:
    Serialized Form
    • Constructor Detail

      • StartedEvent

        public StartedEvent​(Upload source,
                            String filename,
                            String MIMEType,
                            long contentLength)
        Parameters:
        source -
        filename -
        MIMEType -
        length -
    • Method Detail

      • getUpload

        public Upload 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()
        Returns:
        the length of the file that is being uploaded