Search in sources :

Example 1 with HTMLLayoutDragComponent

use of org.uberfire.ext.plugin.client.perspective.editor.layout.editor.HTMLLayoutDragComponent in project kie-wb-common by kiegroup.

the class FormEditorPresenter method loadFormControls.

protected void loadFormControls() {
    String groupName = translationService.getTranslation(FormEditorConstants.FormEditorPresenterComponentsPalette);
    List<LayoutDragComponent> components = new ArrayList<>();
    components.add(htmlLayoutDragComponent);
    editorHelper.getBaseFieldsDraggables().forEach(components::add);
    layoutDragComponentPalette.addDraggableGroup(new FormEditorFieldGroupsProvider(groupName, components));
}
Also used : HTMLLayoutDragComponent(org.uberfire.ext.plugin.client.perspective.editor.layout.editor.HTMLLayoutDragComponent) LayoutDragComponent(org.uberfire.ext.layout.editor.client.api.LayoutDragComponent) ArrayList(java.util.ArrayList) FormEditorFieldGroupsProvider(org.kie.workbench.common.forms.editor.client.editor.groupProviders.FormEditorFieldGroupsProvider)

Aggregations

ArrayList (java.util.ArrayList)1 FormEditorFieldGroupsProvider (org.kie.workbench.common.forms.editor.client.editor.groupProviders.FormEditorFieldGroupsProvider)1 LayoutDragComponent (org.uberfire.ext.layout.editor.client.api.LayoutDragComponent)1 HTMLLayoutDragComponent (org.uberfire.ext.plugin.client.perspective.editor.layout.editor.HTMLLayoutDragComponent)1