Class DNDListComponentView
- java.lang.Object
-
- org.kie.workbench.common.dmn.client.editors.types.listview.draganddrop.DNDListComponentView
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.elemental2.IsElement,org.jboss.errai.ui.client.local.api.elemental2.IsElement,DNDListComponent.View,org.uberfire.client.mvp.HasPresenter<DNDListComponent>,org.uberfire.client.mvp.UberElemental<DNDListComponent>
@Templated public class DNDListComponentView extends Object implements DNDListComponent.View
-
-
Constructor Summary
Constructors Constructor Description DNDListComponentView(elemental2.dom.HTMLDivElement dragArea)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidconsolidateHierarchicalLevel(boolean isElementsDraggedByUser)voidconsolidateYPosition()elemental2.dom.HTMLDivElementgetDragArea()Optional<elemental2.dom.HTMLElement>getPreviousElement(elemental2.dom.Element reference)voidinit(DNDListComponent presenter)voidrefreshDragAreaSize()voidrefreshItemsHTML()voidrefreshItemsPosition()elemental2.dom.HTMLElementregisterItem(elemental2.dom.HTMLElement htmlElement)
-
-
-
Method Detail
-
init
public void init(DNDListComponent presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<DNDListComponent>
-
registerItem
public elemental2.dom.HTMLElement registerItem(elemental2.dom.HTMLElement htmlElement)
- Specified by:
registerItemin interfaceDNDListComponent.View
-
refreshItemsPosition
public void refreshItemsPosition()
- Specified by:
refreshItemsPositionin interfaceDNDListComponent.View
-
refreshItemsHTML
public void refreshItemsHTML()
- Specified by:
refreshItemsHTMLin interfaceDNDListComponent.View
-
consolidateHierarchicalLevel
public void consolidateHierarchicalLevel(boolean isElementsDraggedByUser)
- Specified by:
consolidateHierarchicalLevelin interfaceDNDListComponent.View
-
consolidateYPosition
public void consolidateYPosition()
- Specified by:
consolidateYPositionin interfaceDNDListComponent.View
-
clear
public void clear()
- Specified by:
clearin interfaceDNDListComponent.View
-
getPreviousElement
public Optional<elemental2.dom.HTMLElement> getPreviousElement(elemental2.dom.Element reference)
- Specified by:
getPreviousElementin interfaceDNDListComponent.View
-
refreshDragAreaSize
public void refreshDragAreaSize()
- Specified by:
refreshDragAreaSizein interfaceDNDListComponent.View
-
getDragArea
public elemental2.dom.HTMLDivElement getDragArea()
- Specified by:
getDragAreain interfaceDNDListComponent.View
-
-