Class InspectorFormLayoutBuilder

java.lang.Object
io.jmix.datatoolsflowui.view.entityinspector.assistant.InspectorFormLayoutBuilder

@Component("datatl_EntityInspectorFormBuilder") @Scope("prototype") public class InspectorFormLayoutBuilder extends Object
  • Field Details

    • uiComponents

      @Autowired protected UiComponents uiComponents
    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • uiComponentsGenerator

      @Autowired protected UiComponentsGenerator uiComponentsGenerator
    • actions

      @Autowired protected Actions actions
    • messageTools

      @Autowired protected MessageTools messageTools
    • accessManager

      @Autowired protected AccessManager accessManager
    • container

      protected final InstanceContainer container
    • ownerComponent

      protected com.vaadin.flow.component.Component ownerComponent
    • disabledProperties

      protected List<String> disabledProperties
    • isNewEntity

      protected boolean isNewEntity
  • Constructor Details

    • InspectorFormLayoutBuilder

      protected InspectorFormLayoutBuilder(InstanceContainer container, boolean isNewEntity)
  • Method Details

    • from

      public static InspectorFormLayoutBuilder from(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container, boolean isNewEntity)
    • withOwnerComponent

      public InspectorFormLayoutBuilder withOwnerComponent(com.vaadin.flow.component.Component component)
    • withDisabledProperties

      public InspectorFormLayoutBuilder withDisabledProperties(String... properties)
    • 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 creating
      form - field group to which created field will be added
    • getPropertyTitle

      protected String getPropertyTitle(MetaClass metaClass, MetaProperty metaProperty)