Search in sources :

Example 1 with RepeatingSubFormPanel

use of org.activityinfo.ui.client.component.form.subform.RepeatingSubFormPanel in project activityinfo by bedatadriven.

the class FormWidgetCreator method createSubformPanel.

public SubFormPanel createSubformPanel(FormClass subForm, int depth, RelevanceHandler relevanceHandler, PanelFiller filler) {
    final SubFormPanel panel;
    if (subForm.getSubFormKind() == SubFormKind.REPEATING) {
        panel = new RepeatingSubFormPanel(subForm, model);
    } else {
        panel = new PeriodSubFormPanel(model, subForm, relevanceHandler, filler, depth);
    }
    subformPanels.put(subForm, panel);
    return panel;
}
Also used : RepeatingSubFormPanel(org.activityinfo.ui.client.component.form.subform.RepeatingSubFormPanel) SubFormPanel(org.activityinfo.ui.client.component.form.subform.SubFormPanel) PeriodSubFormPanel(org.activityinfo.ui.client.component.form.subform.PeriodSubFormPanel) PeriodSubFormPanel(org.activityinfo.ui.client.component.form.subform.PeriodSubFormPanel) RepeatingSubFormPanel(org.activityinfo.ui.client.component.form.subform.RepeatingSubFormPanel)

Aggregations

PeriodSubFormPanel (org.activityinfo.ui.client.component.form.subform.PeriodSubFormPanel)1 RepeatingSubFormPanel (org.activityinfo.ui.client.component.form.subform.RepeatingSubFormPanel)1 SubFormPanel (org.activityinfo.ui.client.component.form.subform.SubFormPanel)1