use of org.openforis.collect.designer.viewmodel.SchemaVM in project collect by openforis.
the class SurveySchemaEditComposer method onSelectTreeNode.
@Listen("onSelectTreeNode")
public void onSelectTreeNode(Event event) throws InterruptedException {
SchemaVM vm = (SchemaVM) getViewModel();
if (vm.checkCanLeaveForm()) {
Tab tab = (Tab) event.getTarget();
Tabbox tabbox = tab.getTabbox();
tabbox.setSelectedTab(tab);
}
}