Class AiMessageInput.AttachmentRejectedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<AiMessageInput>
io.jmix.aichat.component.messageinput.AiMessageInput.AttachmentRejectedEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
AiMessageInput
public static class AiMessageInput.AttachmentRejectedEvent
extends com.vaadin.flow.component.ComponentEvent<AiMessageInput>
Fired when the
UploadManager rejects a file (too many, too large,
or wrong type). Purely app-facing.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected com.vaadin.flow.component.upload.UploadManager.FileRejectionReasonFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAttachmentRejectedEvent(AiMessageInput source, boolean fromClient, String fileName, com.vaadin.flow.component.upload.UploadManager.FileRejectionReason reason) Creates the event. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.upload.UploadManager.FileRejectionReasonMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
fileName
-
reason
protected com.vaadin.flow.component.upload.UploadManager.FileRejectionReason reason
-
-
Constructor Details
-
AttachmentRejectedEvent
public AttachmentRejectedEvent(AiMessageInput source, boolean fromClient, String fileName, com.vaadin.flow.component.upload.UploadManager.FileRejectionReason reason) Creates the event.- Parameters:
source- the source componentfromClient-trueif the event comes from the clientfileName- the name of the rejected filereason- why the file was rejected
-
-
Method Details
-
getFileName
- Returns:
- the name of the rejected file
-
getReason
public com.vaadin.flow.component.upload.UploadManager.FileRejectionReason getReason()- Returns:
- why the file was rejected
-