TreeTable SelectionEvent isUserOriginated() always return false

Hi Team,

I found that TreeTable’s SelectionEvent isUserOriginated() always return false.

Reproduce steps:

  1. create an entity for treetable, which means it must have a field point to itself as ‘parent’
  2. create entity browser.
  3. add some data in Entity Inspector.
  4. add below code to entity brower. in cmd, it will output false then select row in UI, still output false
    @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());
    }

Hi.
Thank you for reporting the problem. We have created a GitHub issue.

Regards,
Natalia

1 Like