use of org.zkoss.bind.annotation.Command in project collect by openforis.
the class NumericAttributeVM method addPrecision.
@Command
@NotifyChange("precisions")
public void addPrecision() {
editingNewPrecision = true;
editedPrecision = new Precision();
openPrecisionEditPopUp();
}
use of org.zkoss.bind.annotation.Command in project collect by openforis.
the class SchemaLayoutVM method nodeSelected.
@Command
@NotifyChange({ "rootTabSet" })
public void nodeSelected(@BindingParam("node") Treeitem node) {
List<ModelVersion> versions = survey.getVersions();
setFormVersion(versions.isEmpty() ? null : versions.get(0));
UITabSet tabSet = getRootTabSet(node);
refreshTabSetLayoutPanel(tabSet, false);
this.rootTabSet = tabSet;
dispatchTabSetChangedCommand();
}
use of org.zkoss.bind.annotation.Command 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.Command 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.Command 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);
}
Aggregations