How to add a custom Tree component

Ciao,
I’ve the need to add a tree on my View,
having node and parents not from entity but from array [“id”, “name”, “parentId”]

How to add a custom Tree component (vaadin one ) ?
( I tought to add a Native Vaadin component, but i cannot find the way to do this )

It would be convenient to have a freely manageable tree, having a class node
having attributes : name, id, parent id. so it could be filled from java controller
escecuting query from data manger.

Any suggestion ?
thanks

Ciao,

We invent a solution creating a dummy JmixEntity
having transient field .

I dont know if there is a easier solution.

Then we used the Jmix example about “tree-lazy-nodes”
#https://demo.jmix.io/ui-samples/sample/data-grid-tree-lazy-nodes

‘’’
//www.data-ware.it
@JmixEntity
public class GeoTreeNodeEntity {
// note : must be JmixEntity

@Id
@Transient
private UUID id;
@InstanceName
@Transient
private String name;
@Transient
private String type;
@Transient
private UUID parent;
}
‘’’

rewriting the class

‘’’
//www.data-ware.it
public class GeoTreeNodeEntityLazyTreeDataGridItems extends AbstractDataProvider<GeoTreeNodeEntity, Void>
implements HierarchicalDataProvider<GeoTreeNodeEntity, Void>, DataGridItems.Sortable {

}
‘’’

Senza nome