use of org.openforis.idm.metamodel.Precision 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.openforis.idm.metamodel.Precision in project collect by openforis.
the class PrecisionFormObject method fromList.
public static List<PrecisionFormObject> fromList(List<Precision> precisionDefinitions, String languageCode) {
ArrayList<PrecisionFormObject> result = new ArrayList<PrecisionFormObject>();
for (Precision precision : precisionDefinitions) {
PrecisionFormObject formObject = new PrecisionFormObject();
formObject.loadFrom(precision, languageCode);
result.add(formObject);
}
return result;
}
Aggregations