Class DefaultAiIconProvider

java.lang.Object
io.jmix.aitoolsflowui.icon.impl.DefaultAiIconProvider
All Implemented Interfaces:
AiIconProvider

public class DefaultAiIconProvider extends Object implements AiIconProvider
Default implementation of AiIconProvider that uses the built-in sparkle-burst SVG mark and the dot-variant avatar shipped with the add-on.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.Component
    Creates the assistant avatar glyph used in timeline message rows next to each assistant (and thinking-indicator) message.
    com.vaadin.flow.component.Component
    Creates the brand mark icon used on the chat hub hero section and on each conversation card (recent list and history panel).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DefaultAiIconProvider

      public DefaultAiIconProvider()
  • Method Details

    • createMarkIcon

      public com.vaadin.flow.component.Component createMarkIcon()
      Description copied from interface: AiIconProvider
      Creates the brand mark icon used on the chat hub hero section and on each conversation card (recent list and history panel).

      Must return a fresh component on every call.

      Specified by:
      createMarkIcon in interface AiIconProvider
      Returns:
      a new component representing the AI brand mark
    • createAvatarIcon

      public com.vaadin.flow.component.Component createAvatarIcon()
      Description copied from interface: AiIconProvider
      Creates the assistant avatar glyph used in timeline message rows next to each assistant (and thinking-indicator) message.

      Must return a fresh component on every call.

      Specified by:
      createAvatarIcon in interface AiIconProvider
      Returns:
      a new component representing the assistant avatar glyph