use of org.zkoss.bind.SimpleForm in project collect by openforis.
the class NodeDefinitionVM method initInternal.
protected void initInternal(EntityDefinition parentEntity, T nodeDefn, Boolean newItem) {
super.init();
tempFormObject = new SimpleForm();
if (nodeDefn != null) {
this.parentEntity = parentEntity;
this.newItem = newItem;
setEditedItem(nodeDefn);
}
}
use of org.zkoss.bind.SimpleForm in project collect by openforis.
the class SurveyExportParametersVM method init.
@Init
public void init(@ExecutionArgParam("survey") SurveySummary survey) {
this.surveySummary = survey;
this.formObject = new SurveyExportParametersFormObject();
String outputFormat = (survey.getTarget() == COLLECT_EARTH ? EARTH : DESKTOP).name();
this.formObject.setOutputFormat(outputFormat);
this.formObject.setType((survey.isNotLinkedToPublishedSurvey() ? TEMPORARY : PUBLISHED).name());
this.formObject.setRdbDialect(RdbDialect.STANDARD.name());
this.formObject.setRdbDateTimeFormat(DEFAULT_DATE_TIME_FORMAT);
this.formObject.setRdbTargetSchemaName(survey.getName());
this.formObject.setLanguageCode(survey.getDefaultLanguage());
this.tempForm = new SimpleForm();
}
Aggregations