Search in sources :

Example 1 with DateFlatView

use of org.kie.workbench.common.forms.common.rendering.client.widgets.flatViews.impl.DateFlatView in project kie-wb-common by kiegroup.

the class DatePickerFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    if (renderMode.equals(RenderMode.PRETTY_MODE)) {
        formGroup.render(new DateFlatView(), field);
    } else {
        String inputId = generateUniqueId();
        input = getDateWidget(inputId);
        formGroup.render(inputId, input, field);
    }
    return formGroup;
}
Also used : DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup) DateFlatView(org.kie.workbench.common.forms.common.rendering.client.widgets.flatViews.impl.DateFlatView)

Aggregations

DateFlatView (org.kie.workbench.common.forms.common.rendering.client.widgets.flatViews.impl.DateFlatView)1 DefaultFormGroup (org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)1