Class InspectorFormLayoutBuilder
java.lang.Object
io.jmix.datatoolsflowui.view.entityinspector.assistant.InspectorFormLayoutBuilder
@Component("datatl_EntityInspectorFormBuilder")
@Scope("prototype")
public class InspectorFormLayoutBuilder
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected Actionsprotected final InstanceContainerprotected booleanprotected MessageToolsprotected MetadataToolsprotected com.vaadin.flow.component.Componentprotected UiComponentsprotected UiComponentsGenerator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInspectorFormLayoutBuilder(InstanceContainer container, boolean isNewEntity) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddField(InstanceContainer container, com.vaadin.flow.component.formlayout.FormLayout form, MetaProperty metaProperty, boolean isReadonly) Adds field to the specified form.com.vaadin.flow.component.formlayout.FormLayoutbuild()static InspectorFormLayoutBuilderfrom(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container, boolean isNewEntity) protected StringgetPropertyTitle(MetaClass metaClass, MetaProperty metaProperty) withDisabledProperties(String... properties) withOwnerComponent(com.vaadin.flow.component.Component component)
-
Field Details
-
uiComponents
-
metadataTools
-
uiComponentsGenerator
-
actions
-
messageTools
-
accessManager
-
container
-
ownerComponent
protected com.vaadin.flow.component.Component ownerComponent -
disabledProperties
-
isNewEntity
protected boolean isNewEntity
-
-
Constructor Details
-
InspectorFormLayoutBuilder
-
-
Method Details
-
from
public static InspectorFormLayoutBuilder from(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container, boolean isNewEntity) -
withOwnerComponent
-
withDisabledProperties
-
build
public com.vaadin.flow.component.formlayout.FormLayout build() -
addField
protected void addField(InstanceContainer container, com.vaadin.flow.component.formlayout.FormLayout form, MetaProperty metaProperty, boolean isReadonly) Adds field to the specified form. If the field should be custom, adds it to the specified customFields collection which can be used later to create fieldGenerators- Parameters:
metaProperty- meta property of the item's property which field is creatingform- field group to which created field will be added
-
getPropertyTitle
-