Package io.jmix.aichat.xml.layout.loader
Class AiCodeBlockLoader
java.lang.Object
io.jmix.flowui.xml.layout.loader.AbstractComponentLoader<AiCodeBlock>
io.jmix.aichat.xml.layout.loader.AiCodeBlockLoader
- All Implemented Interfaces:
ComponentLoader<AiCodeBlock>
Loads
AiCodeBlock 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 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 AiCodeBlockprotected AiComponentLoaderSupportprotected voidloadCode()Loads the code from the nestedcodeelement, or, when it is absent, from thecodeattribute.voidLoads 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.Methods inherited from class io.jmix.flowui.xml.layout.loader.AbstractComponentLoader
componentLoader, getContext, getElement, getFactory, getLayoutLoader, getLoaderResolver, getLoaderSupport, getResultComponent, initComponent, loadBoolean, loadBoolean, loadDouble, loadDouble, loadEnum, loadEnum, loadId, loadInteger, loadInteger, loadResourceString, loadResourceString, loadResourceString, loadString, loadString, loadString, loadVisible, setApplicationContext, setContext, setElement, setFactory, setLoaderResolver, setLoaderSupport
-
Field Details
-
CODE_ELEMENT_NAME
- See Also:
-
aiComponentLoaderSupport
-
-
Constructor Details
-
AiCodeBlockLoader
public AiCodeBlockLoader()
-
-
Method Details
-
createComponent
- Specified by:
createComponentin classAbstractComponentLoader<AiCodeBlock>
-
loadComponent
public void loadComponent()Description copied from interface:ComponentLoaderLoads component properties by XML definition. -
loadCode
protected void loadCode()Loads the code from the nestedcodeelement, or, when it is absent, from thecodeattribute. Unlikemarkdown, an absent value is not an error: an empty block the controller fills is the normal case. A present but blank element is an error: loading it as "" would silently shadow the attribute. -
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. -
getAiComponentLoaderSupport
-