Class EntityTreeModelBuilder
java.lang.Object
io.jmix.reportsflowui.view.reportwizard.EntityTreeModelBuilder
@Component("report_EntityTreeModelBuilder")
@Scope("prototype")
public class EntityTreeModelBuilder
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected final ExtendedEntities
protected final MessageTools
protected final Metadata
protected final MetadataTools
protected final ReportsProperties
protected final ReportWizard
-
Constructor Summary
ConstructorDescriptionEntityTreeModelBuilder
(MessageTools messageTools, ReportWizard reportWizard, ReportsProperties reportsProperties, Metadata metadata, ExtendedEntities extendedEntities, MetadataTools metadataTools) -
Method Summary
Modifier and TypeMethodDescriptionbuildEntityTree
(MetaClass metaClass) protected EntityTreeNode
createEntityTreeNode
(MetaProperty metaProperty, EntityTreeNode parent, MetaClass parentMetaClass, MetaClass propertyMetaClass) protected EntityTreeNode
createRootNode
(MetaClass metaClass) protected void
fillChildNodes
(EntityTreeNode parentNode, int depth, Set<String> alreadyAddedMetaProps, EntityTreeStructureInfo treeStructureInfo) int
protected void
init()
protected boolean
isMany
(MetaProperty metaProperty) void
setEntityTreeModelMaxDepth
(int entityTreeModelMaxDepth)
-
Field Details
-
messageTools
-
reportWizard
-
reportsProperties
-
metadata
-
extendedEntities
-
metadataTools
-
entityTreeModelMaxDepth
protected int entityTreeModelMaxDepth
-
-
Constructor Details
-
EntityTreeModelBuilder
public EntityTreeModelBuilder(MessageTools messageTools, ReportWizard reportWizard, ReportsProperties reportsProperties, Metadata metadata, ExtendedEntities extendedEntities, MetadataTools metadataTools)
-
-
Method Details
-
init
@PostConstruct protected void init() -
getEntityTreeModelMaxDepth
public int getEntityTreeModelMaxDepth() -
setEntityTreeModelMaxDepth
public void setEntityTreeModelMaxDepth(int entityTreeModelMaxDepth) -
buildEntityTree
-
fillChildNodes
protected void fillChildNodes(EntityTreeNode parentNode, int depth, Set<String> alreadyAddedMetaProps, EntityTreeStructureInfo treeStructureInfo) -
createEntityTreeNode
protected EntityTreeNode createEntityTreeNode(MetaProperty metaProperty, EntityTreeNode parent, MetaClass parentMetaClass, @Nullable MetaClass propertyMetaClass) -
createRootNode
-
isMany
-