Class InspectorFormLayoutBuilder
java.lang.Object
io.jmix.datatoolsflowui.view.entityinspector.assistant.InspectorFormLayoutBuilder
@Component("datatl_EntityInspectorFormBuilder")
@Scope("prototype")
public class InspectorFormLayoutBuilder
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected Actions
protected final InstanceContainer
protected boolean
protected MessageTools
protected MetadataTools
protected com.vaadin.flow.component.Component
protected UiComponents
protected UiComponentsGenerator
-
Constructor Summary
ModifierConstructorDescriptionprotected
InspectorFormLayoutBuilder
(InstanceContainer container, boolean isNewEntity) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addField
(InstanceContainer container, com.vaadin.flow.component.formlayout.FormLayout form, MetaProperty metaProperty, boolean isReadonly) Adds field to the specified form.com.vaadin.flow.component.formlayout.FormLayout
build()
static InspectorFormLayoutBuilder
from
(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container, boolean isNewEntity) protected String
getPropertyTitle
(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
-