Search in sources :

Example 16 with DefaultFormGroup

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;
}
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)

Example 17 with DefaultFormGroup

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;
}
Also used : DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 18 with DefaultFormGroup

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;
}
Also used : DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Aggregations

DefaultFormGroup (org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)18 HTML (com.google.gwt.user.client.ui.HTML)6 Widget (com.google.gwt.user.client.ui.Widget)1 TextArea (org.gwtbootstrap3.client.ui.TextArea)1 TextBox (org.gwtbootstrap3.client.ui.TextBox)1 DateFlatView (org.kie.workbench.common.forms.common.rendering.client.widgets.flatViews.impl.DateFlatView)1 BPMNDefinition (org.kie.workbench.common.stunner.bpmn.definition.BPMNDefinition)1