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 Details

    • getMessageId

      public String getMessageId()
      Gets the unique identifier for the message containing the clicked attachment. This is the same ID provided in AttachmentSubmitListener.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