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 EntityStates
protected Messages
protected MessageTools
protected MetadataTools
protected com.vaadin.flow.component.Component
protected UiComponents
protected UiComponentsGenerator
-
Constructor Summary
-
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) protected String
getPropertyTitle
(MetaClass metaClass, MetaProperty metaProperty) withDisabledProperties
(String... properties) withOwnerComponent
(com.vaadin.flow.component.Component component)
-
Field Details
-
uiComponents
-
metadataTools
-
entityStates
-
uiComponentsGenerator
-
actions
-
messages
-
messageTools
-
accessManager
-
container
-
ownerComponent
protected com.vaadin.flow.component.Component ownerComponent -
disabledProperties
-
-
Constructor Details
-
InspectorFormLayoutBuilder
-
-
Method Details
-
from
public static InspectorFormLayoutBuilder from(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container) -
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
-