Package io.jmix.flowui.component.upload
Class UploadSucceededEvent<V>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.upload.Upload>
com.vaadin.flow.component.upload.FinishedEvent
io.jmix.flowui.component.upload.UploadSucceededEvent<V>
- Type Parameters:
V- the type of the file data
- All Implemented Interfaces:
Serializable
public class UploadSucceededEvent<V>
extends com.vaadin.flow.component.upload.FinishedEvent
Event fired when a file upload succeeds.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionUploadSucceededEvent(com.vaadin.flow.component.upload.Upload source, V data, String fileName, String mimeType, long length) Create an instance of the event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.upload.FinishedEvent
getContentLength, getFileName, getMIMEType, getUploadMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
data
-
-
Constructor Details
-
UploadSucceededEvent
public UploadSucceededEvent(com.vaadin.flow.component.upload.Upload source, V data, String fileName, String mimeType, long length) Create an instance of the event.- Parameters:
source- the source of the filedata- the received file datafileName- the received file namemimeType- the MIME type of the received filelength- the length of the received file
-
-
Method Details
-
getData
Get the received file data.- Returns:
- the received file data
-