use of org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup 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;
}
use of org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup in project kie-wb-common by kiegroup.
the class MultipleInputFieldRenderer method getFormGroup.
@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
DefaultFormGroup formGroup = formGroupsInstance.get();
input.setPageSize(field.getPageSize());
input.init(field.getStandaloneClassName());
if (field.getReadOnly() || !renderMode.equals(RenderMode.EDIT_MODE)) {
setReadOnly(true);
}
formGroup.render(input.asWidget(), field);
return formGroup;
}
use of org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup in project kie-wb-common by kiegroup.
the class PictureFieldRenderer method getFormGroup.
@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
pictureInput.init(field.getSize().getWidth(), field.getSize().getHeight());
pictureInput.setReadOnly(field.getReadOnly() || renderingContext.getRenderMode().equals(RenderMode.PRETTY_MODE));
DefaultFormGroup formGroup = formGroupsInstance.get();
formGroup.render(pictureInput.asWidget(), field);
return formGroup;
}
Aggregations