use of org.zkoss.bind.annotation.NotifyChange in project collect by openforis.
the class SurveyConfigurationEditVM method addTab.
@Command
@NotifyChange({ "newTab", "editedTabDefinition", "editedTab" })
public void addTab() {
editedTabDefinition = null;
editedTab = new UITab();
newTab = true;
}
use of org.zkoss.bind.annotation.NotifyChange in project collect by openforis.
the class SurveyConfigurationEditVM method addTabDefinition.
@Command
@NotifyChange({ "newTab", "editedTab", "editedTabDefinition" })
public void addTabDefinition() {
editedTab = null;
editedTabDefinition = new UITabDefinition();
newTab = true;
}
use of org.zkoss.bind.annotation.NotifyChange in project collect by openforis.
the class TabsGroupComposer method removeTab.
@Command
@NotifyChange({ "tabs" })
public void removeTab(@BindingParam("tab") UITab tab) {
UITabsGroup parent = tab.getParent();
parent.removeTab(tab);
}
use of org.zkoss.bind.annotation.NotifyChange in project collect by openforis.
the class SurveyEditVM method languageCodeSelected.
@Command
@NotifyChange({ "currentLanguageCode" })
public void languageCodeSelected(@BindingParam("code") final String selectedLanguageCode) {
final SessionStatus sessionStatus = getSessionStatus();
checkCanLeaveForm(new CanLeaveFormConfirmHandler() {
@Override
public void onOk(boolean confirmed) {
sessionStatus.setCurrentLanguageCode(selectedLanguageCode);
BindUtils.postGlobalCommand(null, null, SurveyLanguageVM.CURRENT_LANGUAGE_CHANGED_COMMAND, null);
currentLanguageCode = sessionStatus.getCurrentLanguageCode();
}
});
}
use of org.zkoss.bind.annotation.NotifyChange in project collect by openforis.
the class SchemaVM method addChildTab.
@Command
@NotifyChange({ "treeModel", "selectedTab" })
public void addChildTab(@ContextParam(ContextType.BINDER) Binder binder) {
if (checkCanAddChildTab()) {
UITab parentTab = getSelectedNodeParentTab();
addTabInternal(binder, parentTab);
}
}
Aggregations