@Test public void testGetFormGroupWhenPrettyMode() { renderer.init(context, definition); assertFormGroup(RenderMode.PRETTY_MODE, false); }
@Override public void init(final FormRenderingContext renderingContext, final QNameFieldDefinition field) { Object model = renderingContext.getModel(); if (Objects.isNull(model)) { model = renderingContext.getParentContext().getModel(); } if (model instanceof DMNModelInstrumentedBase) { typePicker.setDMNModel((DMNModelInstrumentedBase) model); } superInit(renderingContext, field); }
QNameFieldRenderer extends FieldRenderer<QNameFieldDefinition, DefaultFormGroup> { @Override public void init(final FormRenderingContext renderingContext, final QNameFieldDefinition field) { Object model = renderingContext.getModel(); if (Objects.isNull(model)) { model = renderingContext.getParentContext().getModel(); } if (model instanceof DMNModelInstrumentedBase) { typePicker.setDMNModel((DMNModelInstrumentedBase) model); } superInit(renderingContext, field); } }
QNameFieldRenderer extends FieldRenderer<QNameFieldDefinition, DefaultFormGroup> { @Override public void init(final FormRenderingContext renderingContext, final QNameFieldDefinition field) { Object model = renderingContext.getModel(); if (Objects.isNull(model)) { model = renderingContext.getParentContext().getModel(); } if (model instanceof DMNModelInstrumentedBase) { typePicker.setDMNModel((DMNModelInstrumentedBase) model); } superInit(renderingContext, field); } QNameFieldRenderer(); @Inject  QNameFieldRenderer(final DataTypePickerWidget typePicker); }
QNameFieldRenderer extends FieldRenderer<QNameFieldDefinition, DefaultFormGroup> { @Override public void init(final FormRenderingContext renderingContext, final QNameFieldDefinition field) { Object model = renderingContext.getModel(); if (Objects.isNull(model)) { model = renderingContext.getParentContext().getModel(); } if (model instanceof DMNModelInstrumentedBase) { typePicker.setDMNModel((DMNModelInstrumentedBase) model); } superInit(renderingContext, field); } QNameFieldRenderer(); @Inject  QNameFieldRenderer(final DataTypePickerWidget typePicker); @Override void init(final FormRenderingContext renderingContext,
                     final QNameFieldDefinition field); @Override String getName(); }
QNameFieldRenderer extends FieldRenderer<QNameFieldDefinition, DefaultFormGroup> { @Override public void init(final FormRenderingContext renderingContext, final QNameFieldDefinition field) { Object model = renderingContext.getModel(); if (Objects.isNull(model)) { model = renderingContext.getParentContext().getModel(); } if (model instanceof DMNModelInstrumentedBase) { typePicker.setDMNModel((DMNModelInstrumentedBase) model); } superInit(renderingContext, field); } QNameFieldRenderer(); @Inject  QNameFieldRenderer(final DataTypePickerWidget typePicker); @Override void init(final FormRenderingContext renderingContext,
                     final QNameFieldDefinition field); @Override String getName();  }