@Test public void getFormGroup() { FormGroup formGroup = tested.getFormGroup(RenderMode.EDIT_MODE); verify(view).init(tested); assertThat(formGroup).isInstanceOf(DefaultFormGroup.class); }
@Override protected FormGroup getFormGroup(RenderMode renderMode) { DefaultFormGroup formGroup = formGroupsInstance.get(); view.init(this); formGroup.render(view.asWidget(), field); return formGroup; }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override protected FormGroup getFormGroup(RenderMode renderMode) { DefaultFormGroup formGroup = formGroupsInstance.get(); view.init(this); formGroup.render(view.asWidget(), field); return formGroup; } }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override protected FormGroup getFormGroup(RenderMode renderMode) { DefaultFormGroup formGroup = formGroupsInstance.get(); view.init(this); formGroup.render(view.asWidget(), field); return formGroup; } @Inject  RolesEditorFieldRenderer(RolesEditorWidgetView editor,
                                    CaseRoleSerializer serializer); }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override protected FormGroup getFormGroup(RenderMode renderMode) { DefaultFormGroup formGroup = formGroupsInstance.get(); view.init(this); formGroup.render(view.asWidget(), field); return formGroup; } @Inject  RolesEditorFieldRenderer(RolesEditorWidgetView editor,
                                    CaseRoleSerializer serializer); @Override String getName(); @Override List<KeyValueRow> deserialize(String value); @Override String serialize(List<KeyValueRow> rows); }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override protected FormGroup getFormGroup(RenderMode renderMode) { DefaultFormGroup formGroup = formGroupsInstance.get(); view.init(this); formGroup.render(view.asWidget(), field); return formGroup; } @Inject  RolesEditorFieldRenderer(RolesEditorWidgetView editor,
                                    CaseRoleSerializer serializer); @Override String getName(); @Override List<KeyValueRow> deserialize(String value); @Override String serialize(List<KeyValueRow> rows);  }