Hi Team,
I found that TreeTable’s SelectionEvent isUserOriginated() always return false.
Reproduce steps:
- create an entity for treetable, which means it must have a field point to itself as ‘parent’
- create entity browser.
- add some data in Entity Inspector.
- add below code to entity brower. in cmd, it will output
false
then select row in UI, still outputfalse
@Subscribe
public void onAfterShow(AfterShowEvent event) {
treeEntitiesTable.setSelected(treeEntitiesDc.getItems().get(0));
}
@Subscribe("treeEntitiesTable")
public void onTreeEntitiesTableSelection(Table.SelectionEvent<TreeEntity> event) {
System.out.println(event.isUserOriginated());
}