Package com.vaadin.flow.component.upload
Class FileRejectedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Upload>
-
- com.vaadin.flow.component.upload.FileRejectedEvent
-
- All Implemented Interfaces:
Serializable
public class FileRejectedEvent extends ComponentEvent<Upload>
Sent when the file selected for upload doesn't meet the constraints specified onUpload
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description FileRejectedEvent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
Get the error message-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Method Detail
-
getErrorMessage
public String getErrorMessage()
Get the error message- Returns:
- errorMessage
-
-