Package com.vaadin.flow.component.upload
Class FileRejectedEvent
- All Implemented Interfaces:
Serializable
Sent when the file selected for upload doesn't meet the constraints specified
on
Upload
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionFileRejectedEvent
(Upload source, String errorMessage) Deprecated.since 24.4.FileRejectedEvent
(Upload source, String errorMessage, String fileName) Creates a new event using the given source and indicator whether the event originated from the client side or the server side. -
Method Summary
Modifier and TypeMethodDescriptionGet the error messageGet the file name.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
FileRejectedEvent
Deprecated.since 24.4. UseFileRejectedEvent(Upload, String, String)
Creates a new event using the given source and indicator whether the event originated from the client side or the server side.- Parameters:
source
- the source componenterrorMessage
- the error message
-
FileRejectedEvent
Creates a new event using the given source and indicator whether the event originated from the client side or the server side.- Parameters:
source
- the source componenterrorMessage
- the error messagefileName
- the rejected file name
-
-
Method Details
-
getErrorMessage
Get the error message- Returns:
- errorMessage
-
getFileName
Get the file name.- Returns:
- file name
-