Search in sources :

Example 1 with DataBindingEditor

use of org.kie.workbench.common.forms.editor.client.editor.properties.binding.DataBindingEditor in project kie-wb-common by kiegroup.

the class FieldPropertiesRenderer method doRender.

protected void doRender(FieldPropertiesRendererHelper helper, FormEditorRenderingContext context) {
    FormModel roodFormModel = helper.getCurrentRenderingContext().getRootForm().getModel();
    final DataBindingEditor editor = roodFormModel instanceof DynamicModel ? dynamicDataBindingEditor : staticDataBindingEditor;
    editor.init(fieldCopy, this::getAvailableBindings, this::onFieldBindingChange);
    view.render(helper, context, editor);
}
Also used : DataBindingEditor(org.kie.workbench.common.forms.editor.client.editor.properties.binding.DataBindingEditor) StaticFormModel(org.kie.workbench.common.forms.editor.client.editor.properties.binding.StaticFormModel) DynamicFormModel(org.kie.workbench.common.forms.editor.client.editor.properties.binding.DynamicFormModel) FormModel(org.kie.workbench.common.forms.model.FormModel) DynamicModel(org.kie.workbench.common.forms.model.DynamicModel)

Aggregations

DataBindingEditor (org.kie.workbench.common.forms.editor.client.editor.properties.binding.DataBindingEditor)1 DynamicFormModel (org.kie.workbench.common.forms.editor.client.editor.properties.binding.DynamicFormModel)1 StaticFormModel (org.kie.workbench.common.forms.editor.client.editor.properties.binding.StaticFormModel)1 DynamicModel (org.kie.workbench.common.forms.model.DynamicModel)1 FormModel (org.kie.workbench.common.forms.model.FormModel)1