Class AbstractTimelineItem
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.HorizontalLayout>
io.jmix.aitoolsflowui.view.chat.renderer.component.AbstractTimelineItem
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
- Direct Known Subclasses:
TimelineAssistantMessageItem,TimelineAssistantThinkingMessageItem,TimelineUserMessageItem
public abstract class AbstractTimelineItem
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.HorizontalLayout>
Base layout for a single timeline message row.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.html.Spanprotected static final Stringprotected static final Stringprotected com.vaadin.flow.component.html.Divprotected static final Stringprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected static final Stringprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected static final Stringprotected com.vaadin.flow.component.html.Spanprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.html.Spanprotected abstract com.vaadin.flow.component.ComponentcreateAvatar(String actorName) protected com.vaadin.flow.component.html.Divprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected com.vaadin.flow.component.html.Spanprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected voidvoidSets the timestamp text shown in the row header.Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
BASE_CN
- See Also:
-
HEADER_CN
- See Also:
-
BODY_CN
- See Also:
-
ACTOR_CN
- See Also:
-
TIME_CN
- See Also:
-
AVATAR_CONTAINER_CN
- See Also:
-
avatarContainer
protected com.vaadin.flow.component.html.Div avatarContainer -
body
protected com.vaadin.flow.component.orderedlayout.VerticalLayout body -
header
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout header -
actor
protected com.vaadin.flow.component.html.Span actor -
time
protected com.vaadin.flow.component.html.Span time
-
-
Constructor Details
-
AbstractTimelineItem
public AbstractTimelineItem()
-
-
Method Details
-
setTime
Sets the timestamp text shown in the row header.- Parameters:
time- formatted timestamp (empty string if unknown)
-
initRow
-
initContent
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout initContent()- Overrides:
initContentin classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.HorizontalLayout>
-
createRoot
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createRoot() -
createHeader
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout createHeader() -
createBody
protected com.vaadin.flow.component.orderedlayout.VerticalLayout createBody() -
createActor
protected com.vaadin.flow.component.html.Span createActor() -
createTime
protected com.vaadin.flow.component.html.Span createTime() -
createAvatarContainer
protected com.vaadin.flow.component.html.Div createAvatarContainer() -
createAvatar
-