reloadTree(orderElementsTree);
}
}
private void reloadTree(TreeComponent orderElementsTree) {
final Tree tree = (Tree) orderElementsTree.getFellowIfAny("tree");
tree.setModel(orderElementTreeController.getFilteredTreeModel());
tree.addEventListener(Events.ON_SELECT, new EventListener() {
@Override
public void onEvent(Event event) {
//undo the work done by this event
//to be able to control it from the ON_CLICK event
tree.clearSelection();
}
});
}