private final TreeView view;
private final EventBus bus = CommonGlobals.getInstance().getEventBus();
public TreePresenter(TreeView treeView) {
this.view = treeView;
bus.addHandler(FormItemRemovedEvent.TYPE, new FormItemRemovedHandler() {
@Override
public void onEvent(FormItemRemovedEvent event) {
FBFormItem item = event.getFormItem();
view.removeFormItem(item);
}