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 Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionActionClickEvent(AiMessageList source, boolean fromClient, int itemIndex, @Nullable String actionKey) Creates the event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
itemIndex
protected int itemIndex -
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 componentfromClient-trueif the event comes from the clientitemIndex- the index of the message the action was clicked onactionKey- the client key of the clicked action
-
-
Method Details
-
getItemIndex
public int getItemIndex() -
getActionKey
-