From the source code of TreeDataGrid
you can find addItemDoubleClickListener, or addItemClickListener
I hope it helps
![]()
‘’’
@ViewComponent
private TreeDataGrid treeDataGrid;{
treeDataGrid.addItemDoubleClickListener((ComponentEventListener<ItemDoubleClickEvent>) geoTreeNodeEntityItemDoubleClickEvent → notifications.create(“GeoObjectClickEvent”, >(geoTreeNodeEntityItemDoubleClickEvent.getItem().getName() + " clicked"))
.withPosition(Notification.Position.BOTTOM_END)
.show());
}
‘’’
or
‘’’ @Subscribe(“treeDataGrid”)
protected void onItemDoubleClick(ItemDoubleClickEvent event) {
notifications.create("onItemDoubleClick Items: " + event.getItem().getName())
.withPosition(Notification.Position.BOTTOM_END)
.show();
}
‘’’