use of org.zkoss.bind.annotation.DependsOn in project collect by openforis.
the class SurveyExportParametersVM method isIncludeDataVisible.
@DependsOn({ "tempForm.type", "tempForm.outputFormat" })
public boolean isIncludeDataVisible() {
SurveyType type = SurveyType.valueOf(getTypeFormField());
OutputFormat outputFormat = OutputFormat.valueOf(getOutputFormatFormField());
return type == PUBLISHED && outputFormat == RDB;
}
use of org.zkoss.bind.annotation.DependsOn in project collect by openforis.
the class SurveyLanguageVM method getUnassignedLanguages.
@DependsOn("assignedLanguages")
public List<LabelledItem> getUnassignedLanguages() {
@SuppressWarnings("unchecked") List<LabelledItem> result = new ArrayList<LabelledItem>(org.apache.commons.collections.CollectionUtils.disjunction(languages, assignedLanguages));
Collections.sort(result, new LabelledItem.LabelComparator());
return result;
}
use of org.zkoss.bind.annotation.DependsOn in project collect by openforis.
the class TaxonAttributeVM method getTaxonomyNames.
@DependsOn("surveyId")
public List<String> getTaxonomyNames() {
List<CollectTaxonomy> taxonomies = speciesManager.loadTaxonomiesBySurvey(survey);
List<String> result = new ArrayList<String>();
for (CollectTaxonomy taxonomy : taxonomies) {
result.add(taxonomy.getName());
}
return result;
}
Aggregations