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 Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected boolean
protected DataComponents
protected TreeDataGrid<EntityTreeNode>
protected com.vaadin.flow.component.formlayout.FormLayout
protected MessageBundle
protected Messages
protected Metadata
protected MetadataTools
protected Comparator<EntityTreeNode>
protected Notifications
protected boolean
protected CollectionContainer<EntityTreeNode>
protected CollectionLoader<EntityTreeNode>
protected com.vaadin.flow.component.textfield.TextField
protected EntityTreeNode
protected boolean
protected UiComponents
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
fill
(EntityTreeNode parentNode, String searchValue, List<EntityTreeNode> result) protected void
fill
(EntityTreeNode parentNode, List<EntityTreeNode> result) protected void
protected com.vaadin.flow.component.formlayout.FormLayout
protected boolean
isSuitable
(String searchValue, EntityTreeNode child) protected boolean
isSuitableRecursively
(String searchValue, EntityTreeNode node) protected boolean
needToShowProperty
(EntityTreeNode childNode, EntityTreeNode parentNode) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setCollectionsOnly
(boolean collectionsOnly) void
setParameters
(EntityTreeNode rootEntity, boolean scalarOnly, boolean collectionsOnly, boolean persistentOnly) void
setPersistentOnly
(boolean persistentOnly) void
setRootEntity
(EntityTreeNode rootEntity) void
setScalarOnly
(boolean scalarOnly) Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
entityTree
-
rootEntity
-
uiComponents
-
dataComponents
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
reportEntityTreeNodeDl
-
reportPropertyName
protected com.vaadin.flow.component.textfield.TextField reportPropertyName -
notifications
-
metadataTools
-
formLayout
protected com.vaadin.flow.component.formlayout.FormLayout formLayout -
messageBundle
-
messages
-
metadata
-
reportEntityTreeNodeDc
-
scalarOnly
protected boolean scalarOnly -
collectionsOnly
protected boolean collectionsOnly -
persistentOnly
protected boolean persistentOnly -
nodeComparator
-
-
Constructor Details
-
EntityTreeComposite
public EntityTreeComposite()
-
-
Method Details
-
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 classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
initComponent
protected void initComponent() -
fill
-
needToShowProperty
-
isSuitable
-
isSuitableRecursively
-
fill
-
setRootEntity
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-