use of org.zkoss.zul.Tabbox in project collect by openforis.
the class SurveyEditComposer method doSelectTab.
protected void doSelectTab(final Tab tab, boolean undoChanges) {
if (undoChanges) {
BindUtils.postGlobalCommand(null, null, SurveyBaseVM.UNDO_LAST_CHANGES_GLOBAL_COMMAND, null);
}
Tabbox tabbox = tab.getTabbox();
tabbox.setSelectedTab(tab);
}
use of org.zkoss.zul.Tabbox 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);
}
}