@Test public void testHardCodedDragAndDropMethods() { editorFieldLayoutComponent.setSettingValue(EditorFieldLayoutComponent.FORM_ID, formDefinition.getId()); editorFieldLayoutComponent.setSettingValue(EditorFieldLayoutComponent.FIELD_ID, fieldDefinition.getId()); verifyDragAndDropMethods(); }
@Override public void setSettingValue(String key, String value) { if (FORM_ID.equals(key)) { formId = Optional.of(value); } else if (FIELD_ID.equals(key)) { fieldId = Optional.of(value); } }
EditorFieldLayoutComponent extends FieldLayoutComponent implements HasDragAndDropSettings,
                                                                                HasModalConfiguration { @Override public void setSettingValue(String key, String value) { if (FORM_ID.equals(key)) { formId = Optional.of(value); } else if (FIELD_ID.equals(key)) { fieldId = Optional.of(value); } } }
EditorFieldLayoutComponent extends FieldLayoutComponent implements HasDragAndDropSettings,
                                                                                HasModalConfiguration { @Override public void setSettingValue(String key, String value) { if (FORM_ID.equals(key)) { formId = Optional.of(value); } else if (FIELD_ID.equals(key)) { fieldId = Optional.of(value); } } @Inject  EditorFieldLayoutComponent(FieldRendererManager fieldRendererManager,
                                      TranslationService translationService,
                                      FieldPropertiesRenderer propertiesRenderer,
                                      FieldManager fieldManager,
                                      Event<FormEditorSyncPaletteEvent> syncPaletteEvent); }
EditorFieldLayoutComponent extends FieldLayoutComponent implements HasDragAndDropSettings,
                                                                                HasModalConfiguration { @Override public void setSettingValue(String key, String value) { if (FORM_ID.equals(key)) { formId = Optional.of(value); } else if (FIELD_ID.equals(key)) { fieldId = Optional.of(value); } } @Inject  EditorFieldLayoutComponent(FieldRendererManager fieldRendererManager,
                                      TranslationService translationService,
                                      FieldPropertiesRenderer propertiesRenderer,
                                      FieldManager fieldManager,
                                      Event<FormEditorSyncPaletteEvent> syncPaletteEvent); @Override void init(FormRenderingContext renderingContext,
                     FieldDefinition field); @Override String[] getSettingsKeys(); @Override void setSettingValue(String key,
                                String value); @Override String getSettingValue(String key); @Override Map<String, String> getMapSettings(); @Override Modal getConfigurationModal(final ModalConfigurationContext ctx); }
EditorFieldLayoutComponent extends FieldLayoutComponent implements HasDragAndDropSettings,
                                                                                HasModalConfiguration { @Override public void setSettingValue(String key, String value) { if (FORM_ID.equals(key)) { formId = Optional.of(value); } else if (FIELD_ID.equals(key)) { fieldId = Optional.of(value); } } @Inject  EditorFieldLayoutComponent(FieldRendererManager fieldRendererManager,
                                      TranslationService translationService,
                                      FieldPropertiesRenderer propertiesRenderer,
                                      FieldManager fieldManager,
                                      Event<FormEditorSyncPaletteEvent> syncPaletteEvent); @Override void init(FormRenderingContext renderingContext,
                     FieldDefinition field); @Override String[] getSettingsKeys(); @Override void setSettingValue(String key,
                                String value); @Override String getSettingValue(String key); @Override Map<String, String> getMapSettings(); @Override Modal getConfigurationModal(final ModalConfigurationContext ctx); final String[] SETTINGS_KEYS; }