Search in sources :

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

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

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

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    view.init(this);
    graph = sessionManager.getCurrentSession().getCanvasHandler().getDiagram().getGraph();
    formGroup.render(view.asWidget(), field);
    return formGroup;
}
Also used : DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

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

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    if (renderMode.equals(RenderMode.PRETTY_MODE)) {
        formGroup.render(new HTML(), field);
    } else {
        input = getRadioGroup();
        refreshSelectorOptions();
        formGroup.render(input, field);
    }
    return formGroup;
}
Also used : HTML(com.google.gwt.user.client.ui.HTML) DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

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

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    if (renderMode.equals(RenderMode.PRETTY_MODE)) {
        HTML html = new HTML();
        formGroup.render(html, field);
    } else {
        String inputId = generateUniqueId();
        textArea = new TextArea();
        textArea.setId(inputId);
        textArea.setPlaceholder(field.getPlaceHolder());
        textArea.setVisibleLines(field.getRows());
        textArea.setEnabled(!field.getReadOnly());
        textArea.setVisibleLines(field.getRows());
        formGroup.render(inputId, textArea, field);
    }
    return formGroup;
}
Also used : TextArea(org.gwtbootstrap3.client.ui.TextArea) HTML(com.google.gwt.user.client.ui.HTML) DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

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

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    if (renderMode.equals(RenderMode.PRETTY_MODE)) {
        HTML html = new HTML();
        formGroup.render(html, field);
    } else {
        String inputId = generateUniqueId();
        textBox = new TextBox();
        textBox.setId(inputId);
        textBox.setPlaceholder(field.getPlaceHolder());
        textBox.setMaxLength(field.getMaxLength());
        textBox.setEnabled(!field.getReadOnly());
        formGroup.render(inputId, textBox, field);
    }
    return formGroup;
}
Also used : HTML(com.google.gwt.user.client.ui.HTML) TextBox(org.gwtbootstrap3.client.ui.TextBox) 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