Package io.jmix.aichat.component.chat
Enum Class AiChatVariant
- All Implemented Interfaces:
com.vaadin.flow.component.shared.ThemeVariant,Serializable,Comparable<AiChatVariant>,Constable
public enum AiChatVariant
extends Enum<AiChatVariant>
implements com.vaadin.flow.component.shared.ThemeVariant
Set of theme variants applicable for the
AiChat component. Setting a
variant on the chat projects it onto the inner message list and message input
(see AiChat.getThemeNames()), so a single knob styles the composite.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionForces the message input's expanded "toolbar" layout at all times, the chat-level counterpart ofAiMessageInputVariant#FIXED_TOOLBAR: the textarea spans the top and the prefix/suffix/send controls sit in a row beneath it, even for short input.Opts the input's footer band out of the default hidden-while-empty behavior, so it stays shown even while the chat is empty.Opts the input's header band out of the default hidden-while-empty behavior, so it stays shown even while the chat is empty.Removes the composer's own gap between the input box and itsheader/footerbands, the chat-level counterpart ofAiMessageInputVariant#NO_HEADER_FOOTER_GAP: content declared viainputHeader/inputFootersits directly against the box. -
Method Summary
Modifier and TypeMethodDescriptionGets the variant name.static AiChatVariantReturns the enum constant of this class with the specified name.static AiChatVariant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED_TOOLBAR
Forces the message input's expanded "toolbar" layout at all times, the chat-level counterpart ofAiMessageInputVariant#FIXED_TOOLBAR: the textarea spans the top and the prefix/suffix/send controls sit in a row beneath it, even for short input. -
NO_HEADER_FOOTER_GAP
Removes the composer's own gap between the input box and itsheader/footerbands, the chat-level counterpart ofAiMessageInputVariant#NO_HEADER_FOOTER_GAP: content declared viainputHeader/inputFootersits directly against the box. The gaps inside the box stay as they are. -
INPUT_HEADER_COMPONENT_ALWAYS_VISIBLE
Opts the input's header band out of the default hidden-while-empty behavior, so it stays shown even while the chat is empty. Does not otherwise force visibility — application CSS orsetVisible(false)can still hide the band. -
INPUT_FOOTER_COMPONENT_ALWAYS_VISIBLE
Opts the input's footer band out of the default hidden-while-empty behavior, so it stays shown even while the chat is empty. Does not otherwise force visibility — application CSS orsetVisible(false)can still hide the band.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getVariantName
Gets the variant name.- Specified by:
getVariantNamein interfacecom.vaadin.flow.component.shared.ThemeVariant- Returns:
- variant name
-