Search in sources :

Example 1 with SimpleForm

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);
    }
}
Also used : SimpleForm(org.zkoss.bind.SimpleForm)

Example 2 with SimpleForm

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();
}
Also used : SimpleForm(org.zkoss.bind.SimpleForm) Init(org.zkoss.bind.annotation.Init)

Aggregations

SimpleForm (org.zkoss.bind.SimpleForm)2 Init (org.zkoss.bind.annotation.Init)1