Search in sources :

Example 1 with Tabbox

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);
}
Also used : Tabbox(org.zkoss.zul.Tabbox)

Example 2 with Tabbox

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);
    }
}
Also used : Tab(org.zkoss.zul.Tab) Tabbox(org.zkoss.zul.Tabbox) SchemaVM(org.openforis.collect.designer.viewmodel.SchemaVM) Listen(org.zkoss.zk.ui.select.annotation.Listen)

Aggregations

Tabbox (org.zkoss.zul.Tabbox)2 SchemaVM (org.openforis.collect.designer.viewmodel.SchemaVM)1 Listen (org.zkoss.zk.ui.select.annotation.Listen)1 Tab (org.zkoss.zul.Tab)1