Class ComponentXmlFactory
java.lang.Object
io.jmix.flowui.view.template.impl.ComponentXmlFactory
Factory for creating XML representations of UI components based on entity metadata properties.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddEntityPickerActions(org.dom4j.Element element, MetaProperty metaProperty) createComponentXml(MetaProperty metaProperty, @Nullable String dataContainerId) Creates an XML representation of a UI component for the given entity property.protected org.dom4j.ElementcreateElement(MetaProperty metaProperty) protected StringgetDatatypeComponentName(MetaProperty metaProperty) protected voidinitDataBinding(org.dom4j.Element element, MetaProperty metaProperty, @Nullable String dataContainerId) protected booleanisLob(MetaProperty metaProperty)
-
Constructor Details
-
ComponentXmlFactory
public ComponentXmlFactory()
-
-
Method Details
-
createComponentXml
Creates an XML representation of a UI component for the given entity property.The component type is determined based on the property's range and type. For entity properties, appropriate actions are added to the entity picker component.
- Parameters:
metaProperty- the entity property for which to create a componentdataContainerId- optional data container identifier for data binding, may be null- Returns:
- XML string representation of the component
- Throws:
UnsupportedOperationException- if the property is collection-valued
-
createElement
-
getDatatypeComponentName
-
isLob
-
initDataBinding
protected void initDataBinding(org.dom4j.Element element, MetaProperty metaProperty, @Nullable String dataContainerId) -
addEntityPickerActions
-
addAction
-