Search in sources :

Example 1 with OutputFormat

use of org.openforis.collect.designer.viewmodel.SurveyExportParametersVM.SurveyExportParametersFormObject.OutputFormat 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;
}
Also used : SurveyType(org.openforis.collect.designer.viewmodel.SurveyBaseVM.SurveyType) OutputFormat(org.openforis.collect.designer.viewmodel.SurveyExportParametersVM.SurveyExportParametersFormObject.OutputFormat) DependsOn(org.zkoss.bind.annotation.DependsOn)

Aggregations

SurveyType (org.openforis.collect.designer.viewmodel.SurveyBaseVM.SurveyType)1 OutputFormat (org.openforis.collect.designer.viewmodel.SurveyExportParametersVM.SurveyExportParametersFormObject.OutputFormat)1 DependsOn (org.zkoss.bind.annotation.DependsOn)1