Search in sources :

Example 1 with DEAFormBuilder

use of de.symeda.sormas.ui.travelentry.DEAFormBuilder in project SORMAS-Project by hzi-braunschweig.

the class TravelEntryCreateForm method buildDeaContent.

private void buildDeaContent(TravelEntryDto newFieldValue) {
    final List<DeaContentEntry> deaContent = newFieldValue.getDeaContent();
    if (CollectionUtils.isNotEmpty(deaContent)) {
        deaFormBuilder = new DEAFormBuilder(deaContent, true);
        deaFormBuilder.buildForm();
        getContent().addComponent(deaFormBuilder.getLayout(), DEA_CONTENT_LOC);
    }
}
Also used : DeaContentEntry(de.symeda.sormas.api.travelentry.DeaContentEntry) DEAFormBuilder(de.symeda.sormas.ui.travelentry.DEAFormBuilder)

Aggregations

DeaContentEntry (de.symeda.sormas.api.travelentry.DeaContentEntry)1 DEAFormBuilder (de.symeda.sormas.ui.travelentry.DEAFormBuilder)1