Class AiMessageList.ActionClickEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<AiMessageList>
io.jmix.aichat.component.messagelist.AiMessageList.ActionClickEvent
All Implemented Interfaces:
Serializable
Enclosing class:
AiMessageList

@DomEvent("action-click-flow") public static class AiMessageList.ActionClickEvent extends com.vaadin.flow.component.ComponentEvent<AiMessageList>
Internal event: a message action button was clicked on the client. Routed to the corresponding AiMessageAction.actionPerform(AiMessageList, AiMessageListItem). The built-in copy action never fires this (handled on the client). Must be public so Flow can instantiate it reflectively from the client DOM event (a package-private event class is silently dropped).
See Also:
  • Field Details

    • itemIndex

      protected int itemIndex
    • actionKey

      protected @Nullable String actionKey
  • Constructor Details

    • ActionClickEvent

      public ActionClickEvent(AiMessageList source, boolean fromClient, @EventData("event.detail.itemIndex") int itemIndex, @EventData("event.detail.actionKey") @Nullable String actionKey)
      Creates the event.
      Parameters:
      source - the source component
      fromClient - true if the event comes from the client
      itemIndex - the index of the message the action was clicked on
      actionKey - the client key of the clicked action
  • Method Details

    • getItemIndex

      public int getItemIndex()
    • getActionKey

      public @Nullable String getActionKey()