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

    Fields
    Modifier and Type
    Field
    Description
    protected com.vaadin.flow.component.html.Span
     
    protected static final String
     
    protected static final String
     
    protected com.vaadin.flow.component.html.Div
     
    protected static final String
     
    protected com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    protected static final String
     
    protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    protected static final String
     
    protected com.vaadin.flow.component.html.Span
     
    protected static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.vaadin.flow.component.html.Span
     
    protected abstract com.vaadin.flow.component.Component
    createAvatar(String actorName)
     
    protected com.vaadin.flow.component.html.Div
     
    protected com.vaadin.flow.component.orderedlayout.VerticalLayout
     
    protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    protected com.vaadin.flow.component.html.Span
     
    protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
     
    protected void
    initRow(String actorName)
     
    void
    Sets the timestamp text shown in the row header.

    Methods inherited from class com.vaadin.flow.component.Composite

    getChildren, getContent, getElement

    Methods 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, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

    • BASE_CN

      protected static final String BASE_CN
      See Also:
    • HEADER_CN

      protected static final String HEADER_CN
      See Also:
    • BODY_CN

      protected static final String BODY_CN
      See Also:
    • ACTOR_CN

      protected static final String ACTOR_CN
      See Also:
    • TIME_CN

      protected static final String TIME_CN
      See Also:
    • AVATAR_CONTAINER_CN

      protected static final String AVATAR_CONTAINER_CN
      See Also:
    • avatarContainer

      protected com.vaadin.flow.component.html.Div avatarContainer
    • body

      protected com.vaadin.flow.component.orderedlayout.VerticalLayout body
    • 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

      public void setTime(String time)
      Sets the timestamp text shown in the row header.
      Parameters:
      time - formatted timestamp (empty string if unknown)
    • initRow

      protected void initRow(String actorName)
    • initContent

      protected com.vaadin.flow.component.orderedlayout.HorizontalLayout initContent()
      Overrides:
      initContent in class com.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

      protected abstract com.vaadin.flow.component.Component createAvatar(String actorName)