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) Creates a new event using the given source and indicator whether the event originated from the client side or the server side. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
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 message
-
-
Method Details
-
getErrorMessage
Get the error message- Returns:
- errorMessage
-