Package io.jmix.ui.widget
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionFinishedEvent
(JmixFileUpload source, String fileName, String MIMEType, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the contentLength of the file.Gets the file name.Gets the MIME Type of the file.Uploads where the event occurred.Methods inherited from class com.vaadin.ui.Component.Event
getComponent
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
FinishedEvent
- 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
Uploads where the event occurred.- Returns:
- the Source of the event.
-
getFileName
Gets the file name.- Returns:
- the fileName.
-
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.
-