Class EntityTreeComposite

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
io.jmix.reportsflowui.view.reportwizard.EntityTreeComposite
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class EntityTreeComposite extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout> implements org.springframework.context.ApplicationContextAware, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasEnabled, org.springframework.beans.factory.InitializingBean, com.vaadin.flow.component.HasComponents
See Also:
  • Field Details

    • entityTree

      protected TreeDataGrid<EntityTreeNode> entityTree
    • rootEntity

      protected EntityTreeNode rootEntity
    • uiComponents

      protected UiComponents uiComponents
    • dataComponents

      protected DataComponents dataComponents
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • reportEntityTreeNodeDl

      protected CollectionLoader<EntityTreeNode> reportEntityTreeNodeDl
    • reportPropertyName

      protected com.vaadin.flow.component.textfield.TextField reportPropertyName
    • notifications

      protected Notifications notifications
    • metadataTools

      protected MetadataTools metadataTools
    • formLayout

      protected com.vaadin.flow.component.formlayout.FormLayout formLayout
    • messages

      protected Messages messages
    • metadata

      protected Metadata metadata
    • reportEntityTreeNodeDc

      protected CollectionContainer<EntityTreeNode> reportEntityTreeNodeDc
    • scalarOnly

      protected boolean scalarOnly
    • collectionsOnly

      protected boolean collectionsOnly
    • persistentOnly

      protected boolean persistentOnly
    • nodeComparator

      protected Comparator<EntityTreeNode> nodeComparator
  • Constructor Details

    • EntityTreeComposite

      public EntityTreeComposite()
  • Method Details

    • getEntityTree

      public TreeDataGrid<EntityTreeNode> getEntityTree()
    • setParameters

      public void setParameters(EntityTreeNode rootEntity, boolean scalarOnly, boolean collectionsOnly, boolean persistentOnly)
    • setScalarOnly

      public void setScalarOnly(boolean scalarOnly)
    • setCollectionsOnly

      public void setCollectionsOnly(boolean collectionsOnly)
    • setPersistentOnly

      public void setPersistentOnly(boolean persistentOnly)
    • initContent

      protected com.vaadin.flow.component.formlayout.FormLayout initContent()
      Overrides:
      initContent in class com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • initComponent

      protected void initComponent()
    • fill

      protected void fill(EntityTreeNode parentNode, String searchValue, List<EntityTreeNode> result)
    • needToShowProperty

      protected boolean needToShowProperty(EntityTreeNode childNode, EntityTreeNode parentNode)
    • isSuitable

      protected boolean isSuitable(String searchValue, EntityTreeNode child)
    • isSuitableRecursively

      protected boolean isSuitableRecursively(String searchValue, EntityTreeNode node)
    • fill

      protected void fill(EntityTreeNode parentNode, List<EntityTreeNode> result)
    • setRootEntity

      public void setRootEntity(EntityTreeNode rootEntity)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException