Package io.jmix.aichat.data
Class AiChatItems.ItemsChangeEvent<T extends AiChatMessage>
java.lang.Object
java.util.EventObject
io.jmix.aichat.data.AiChatItems.ItemsChangeEvent<T>
- Type Parameters:
T- the application's message type
- All Implemented Interfaces:
Serializable
- Enclosing interface:
AiChatItems<T extends AiChatMessage>
Event fired when the message collection changes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AiChatItems.ItemsChangeTypeprotected Collection<? extends T> Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionItemsChangeEvent(AiChatItems<T> source, AiChatItems.ItemsChangeType changeType, Collection<? extends T> items) Creates the event. -
Method Summary
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
changeType
-
items
-
-
Constructor Details
-
ItemsChangeEvent
public ItemsChangeEvent(AiChatItems<T> source, AiChatItems.ItemsChangeType changeType, Collection<? extends T> items) Creates the event.- Parameters:
source- the message source that changedchangeType- what kind of change occurreditems- the messages the change concerns
-
-
Method Details
-
getSource
- Overrides:
getSourcein classEventObject
-
getChangeType
- Returns:
- the kind of change
-
getItems
- Returns:
- the affected messages; empty for
AiChatItems.ItemsChangeType.REFRESHwhen the source does not report them
-