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
    • entityStates

      @Autowired protected EntityStates entityStates
    • uiComponentsGenerator

      @Autowired protected UiComponentsGenerator uiComponentsGenerator
    • actions

      @Autowired protected Actions actions
    • messages

      @Autowired protected Messages messages
    • 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
  • Constructor Details

    • InspectorFormLayoutBuilder

      protected InspectorFormLayoutBuilder(InstanceContainer container)
  • Method Details

    • from

      public static InspectorFormLayoutBuilder from(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container)
    • 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)