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:
-
FinishedEvent- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final longprotected final StringFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionFileUploadFinishedEvent(C source, String fileName, String mimeType, long length) -
Method Summary
Modifier and TypeMethodDescriptionlongMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
length
protected final long length -
mimeType
-
fileName
-
-
Constructor Details
-
FileUploadFinishedEvent
-
-
Method Details
-
getFileName
- Returns:
- the file name
-
getMimeType
- Returns:
- the MIME Type of the file
-
getContentLength
public long getContentLength()- Returns:
- the length of the file
-