I'm trying te play with TreeGrid at Vaadin 8.1 RC1. I'm trying to migare from HierarchicalContainer to the TreeDataProvider. But I didn't get the idea of the new Hierarchial data stucture. I need just some simple things: - Is it possible to get an id of any item of the Hierarchical data? Or new data will not use Ids? - is is possible to get parent object of existed object. Like
TreeData<MyClass> MyTreeData;
MyClass myObject;
MyClass parentItem = MyTreeData.getParent(myObject)
I've found some deail related to HierarchicalQuery and "The parent node is available in the HierarchicalQuery via the getParent method, which returns for the root level." But no examples how to use HierarchicalQuery.