use of org.zkoss.zkplus.databind.BindingListModelList in project collect by openforis.
the class SurveyBaseVM method getCodeLists.
public List<CodeList> getCodeLists() {
CollectSurvey survey = getSurvey();
boolean includeSamplingDesignList = survey.getTarget() != SurveyTarget.COLLECT_EARTH;
List<CodeList> result = new ArrayList<CodeList>(survey.getCodeLists(includeSamplingDesignList));
result = sort(result);
return new BindingListModelList<CodeList>(result, false);
}
use of org.zkoss.zkplus.databind.BindingListModelList in project collect by openforis.
the class SurveyBaseVM method getFormVersionIdsWithEmptyOption.
public List<Integer> getFormVersionIdsWithEmptyOption() {
List<ModelVersion> versions = getSurveyFormVersions();
List<Integer> result = new ArrayList<Integer>();
result.add(0, -1);
for (ModelVersion modelVersion : versions) {
result.add(modelVersion.getId());
}
return new BindingListModelList<Integer>(result, false);
}
use of org.zkoss.zkplus.databind.BindingListModelList in project collect by openforis.
the class SchemaLayoutVM method getFormVersions.
public List<ModelVersion> getFormVersions() {
CollectSurvey survey = getSurvey();
List<ModelVersion> result = new ArrayList<ModelVersion>(survey.getVersions());
return new BindingListModelList<ModelVersion>(result, false);
}
Aggregations