Class AttachmentClickListener.AttachmentClickEvent
java.lang.Object
com.vaadin.flow.component.ai.orchestrator.AttachmentClickListener.AttachmentClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
AttachmentClickListener
public static class AttachmentClickListener.AttachmentClickEvent
extends Object
implements Serializable
Event fired when an attachment in the message list is clicked.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintGets the index of the clicked attachment within the message.Gets the unique identifier for the message containing the clicked attachment.
-
Method Details
-
getMessageId
Gets the unique identifier for the message containing the clicked attachment. This is the same ID provided inAttachmentSubmitListener.AttachmentSubmitEvent.getMessageId().- Returns:
- the message ID
-
getAttachmentIndex
public int getAttachmentIndex()Gets the index of the clicked attachment within the message.- Returns:
- the 0-based attachment index
-