Search in sources :

Example 1 with Precision

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();
}
Also used : Precision(org.openforis.idm.metamodel.Precision) NotifyChange(org.zkoss.bind.annotation.NotifyChange) Command(org.zkoss.bind.annotation.Command) GlobalCommand(org.zkoss.bind.annotation.GlobalCommand)

Example 2 with Precision

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;
}
Also used : Precision(org.openforis.idm.metamodel.Precision) ArrayList(java.util.ArrayList)

Aggregations

Precision (org.openforis.idm.metamodel.Precision)2 ArrayList (java.util.ArrayList)1 Command (org.zkoss.bind.annotation.Command)1 GlobalCommand (org.zkoss.bind.annotation.GlobalCommand)1 NotifyChange (org.zkoss.bind.annotation.NotifyChange)1