Package io.jmix.aichat.xml.layout.loader
Class AiMessageListLoader
java.lang.Object
io.jmix.flowui.xml.layout.loader.AbstractComponentLoader<AiMessageList>
io.jmix.aichat.xml.layout.loader.AiMessageListLoader
- All Implemented Interfaces:
ComponentLoader<AiMessageList>
Loads
AiMessageList from a view descriptor.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.xml.layout.ComponentLoader
ComponentLoader.AutowireTask, ComponentLoader.ComponentContext, ComponentLoader.Context, ComponentLoader.FragmentContext, ComponentLoader.InitTask -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable AiComponentLoaderSupportprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class io.jmix.flowui.xml.layout.loader.AbstractComponentLoader
applicationContext, componentLoaderSupport, context, element, factory, loaderResolver, loaderSupport, resultComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AiMessageListprotected AiComponentLoaderSupportvoidCreates result component by XML-elementvoidLoads component properties by XML definition.protected voidloadI18n()Applies the labels declared in the nestedi18nelement on top of the localization the component resolved from the message bundle when it was created — its own labels, and, from the nestedcodeBlockelement, those of the code blocks rendered inside messages, which the list's bean holds as the code block's own bean.Methods inherited from class io.jmix.flowui.xml.layout.loader.AbstractComponentLoader
componentLoader, getContext, getElement, getFactory, getLayoutLoader, getLoaderResolver, getLoaderSupport, getResultComponent, loadBoolean, loadBoolean, loadDouble, loadDouble, loadEnum, loadEnum, loadId, loadInteger, loadInteger, loadResourceString, loadResourceString, loadResourceString, loadString, loadString, loadString, loadVisible, setApplicationContext, setContext, setElement, setFactory, setLoaderResolver, setLoaderSupport
-
Field Details
-
THINKING_INDICATOR_ELEMENT_NAME
- See Also:
-
USER_ACTIONS_ELEMENT_NAME
- See Also:
-
ASSISTANT_ACTIONS_ELEMENT_NAME
- See Also:
-
aiComponentLoaderSupport
-
-
Constructor Details
-
AiMessageListLoader
public AiMessageListLoader()
-
-
Method Details
-
createComponent
- Specified by:
createComponentin classAbstractComponentLoader<AiMessageList>
-
initComponent
public void initComponent()Description copied from interface:ComponentLoaderCreates result component by XML-element- Specified by:
initComponentin interfaceComponentLoader<AiMessageList>- Overrides:
initComponentin classAbstractComponentLoader<AiMessageList>
-
loadComponent
public void loadComponent()Description copied from interface:ComponentLoaderLoads component properties by XML definition. -
loadI18n
protected void loadI18n()Applies the labels declared in the nestedi18nelement on top of the localization the component resolved from the message bundle when it was created — its own labels, and, from the nestedcodeBlockelement, those of the code blocks rendered inside messages, which the list's bean holds as the code block's own bean.The escalating thinking-stage labels are not part of this element: each is paired with a delay on a
thinkingStage, loaded fromthinkingStagesabove. -
getAiComponentLoaderSupport
-