Search in sources :

Example 6 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 DocumentFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    view.setReadOnly(field.getReadOnly() || !renderingContext.getRenderMode().equals(RenderMode.EDIT_MODE));
    formGroup.render(view.asWidget(), field);
    return formGroup;
}
Also used : DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 7 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 AbstractComboBoxFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    view.setReadOnly(field.getReadOnly());
    refreshSelectorOptions();
    formGroup.render(view.asWidget(), field);
    return formGroup;
}
Also used : DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 8 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 ScriptTypeListFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    formGroup.render(widget, field);
    widget.setMode(field.getMode());
    return formGroup;
}
Also used : DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 9 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 AssignmentsEditorFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    assignmentsEditor.setBPMNModel(null);
    Object model = ContextUtils.getModel(renderingContext);
    if (model instanceof BPMNDefinition) {
        assignmentsEditor.setBPMNModel((BPMNDefinition) model);
    }
    formGroup.render(assignmentsEditor, field);
    return formGroup;
}
Also used : BPMNDefinition(org.kie.workbench.common.stunner.bpmn.definition.BPMNDefinition) DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 10 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 ScriptTypeFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    formGroup.render(widget, field);
    widget.setMode(field.getMode());
    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