Package io.jmix.dynmodelflowui.impl
Class DynamicAttributeComponentXmlFactory
java.lang.Object
io.jmix.dynmodelflowui.impl.DynamicAttributeComponentXmlFactory
@Component("dynmod_DynamicAttributeComponentXmlFactory")
public class DynamicAttributeComponentXmlFactory
extends Object
Builds dom4j elements (columns and form components) for dynamic attributes of a static entity,
driven by the Admin-UI
DynamicAttributeModel rather than runtime MetaProperty.
Mirrors io.jmix.flowui.view.template.impl.ComponentXmlFactory's datatype-to-component
mapping. New elements are created in the parent element's namespace so the serialized extension
XML stays in the view namespace without redundant xmlns declarations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringactionElementId(String actionId) protected voidprotected org.dom4j.Elementorg.dom4j.ElementaddColumn(org.dom4j.Element columnsElement, DynamicAttributeModel attribute) org.dom4j.ElementaddComponent(org.dom4j.Element parentElement, DynamicAttributeModel attribute, @Nullable String referencedEntityClass) Adds the form component of the given attribute toparentElement.protected voidaddLookupActions(org.dom4j.Element element, DynamicAttributeModel attribute) protected voidaddPickerActions(org.dom4j.Element element, DynamicAttributeModel attribute) componentName(DynamicAttributeModel attribute) datatypeComponentName(@Nullable String javaClassName, boolean lob) protected @Nullable Class<?> lookupActionIds(DynamicAttributeModel attribute)
-
Constructor Details
-
DynamicAttributeComponentXmlFactory
public DynamicAttributeComponentXmlFactory()
-
-
Method Details
-
addColumn
public org.dom4j.Element addColumn(org.dom4j.Element columnsElement, DynamicAttributeModel attribute) -
addComponent
public org.dom4j.Element addComponent(org.dom4j.Element parentElement, DynamicAttributeModel attribute, @Nullable String referencedEntityClass) Adds the form component of the given attribute toparentElement.- Parameters:
referencedEntityClass- fully qualified class name of the referenced entity; a dropdown reference without it is built as a picker
-
componentName
-
datatypeComponentName
-
loadClass
-
addAction
-
addChild
-
addPickerActions
-
addLookupActions
-
lookupActionIds
-
actionElementId
-