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