Enum Class AiMessageInputVariant
- All Implemented Interfaces:
com.vaadin.flow.component.shared.ThemeVariant,Serializable,Comparable<AiMessageInputVariant>,Constable
public enum AiMessageInputVariant
extends Enum<AiMessageInputVariant>
implements com.vaadin.flow.component.shared.ThemeVariant
Set of theme variants applicable for
ai-message-input component.-
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 expanded "toolbar" layout at all times: the textarea spans the top and the prefix/suffix/send controls sit in a row beneath it, even for short input.Removes the component's own gap between the input box and theheader/footerbands, so band content sits directly against the box; a band component's own margins are not affected. -
Method Summary
Modifier and TypeMethodDescriptionGets the variant name.static AiMessageInputVariantReturns the enum constant of this class with the specified name.static AiMessageInputVariant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED_TOOLBAR
Forces the expanded "toolbar" layout at all times: the textarea spans the top and the prefix/suffix/send controls sit in a row beneath it, even for short input. Without this variant the input is adaptive (single row when short, toolbar once the textarea grows past one line). -
NO_HEADER_FOOTER_GAP
Removes the component's own gap between the input box and theheader/footerbands, so band content sits directly against the box; a band component's own margins are not affected. The gaps inside the box — between the attachments tray, the controls row and the trailing group — stay as they are, which is why this is a variant and not simply a--jmix-ai-message-input-gapoverride: that variable feeds both.
-
-
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
-