Class AbstractDefaultLayoutDropHandler
java.lang.Object
io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.AbstractDefaultLayoutDropHandler
- All Implemented Interfaces:
com.vaadin.event.dd.DropHandler
,Serializable
- Direct Known Subclasses:
DefaultAbsoluteLayoutDropHandler
,DefaultAccordionDropHandler
,DefaultCssLayoutDropHandler
,DefaultFormLayoutDropHandler
,DefaultGridLayoutDropHandler
,DefaultHorizontalLayoutDropHandler
,DefaultHorizontalLayoutDropHandler
,DefaultHorizontalSplitPanelDropHandler
,DefaultPanelDropHandler
,DefaultTabSheetDropHandler
,DefaultVerticalLayoutDropHandler
,DefaultVerticalLayoutDropHandler
,DefaultVerticalSplitPanelDropHandler
public abstract class AbstractDefaultLayoutDropHandler
extends Object
implements com.vaadin.event.dd.DropHandler
Abstract class for layout drop handlers
- Since:
- 0.7.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drop
(com.vaadin.event.dd.DragAndDropEvent event) com.vaadin.event.dd.acceptcriteria.AcceptCriterion
abstract Class<? extends com.vaadin.ui.HasComponents>
protected abstract void
handleComponentReordering
(com.vaadin.event.dd.DragAndDropEvent event) protected void
handleDropFromAbsoluteParentLayout
(com.vaadin.event.dd.DragAndDropEvent event) Handles a drop by a component which has an absolute layout as parent.protected abstract void
handleDropFromLayout
(com.vaadin.event.dd.DragAndDropEvent event) protected void
handleHTML5Drop
(com.vaadin.event.dd.DragAndDropEvent event) protected com.vaadin.ui.Component
resolveComponentFromHTML5Drop
(com.vaadin.event.dd.DragAndDropEvent event)
-
Constructor Details
-
AbstractDefaultLayoutDropHandler
public AbstractDefaultLayoutDropHandler()
-
-
Method Details
-
handleComponentReordering
protected abstract void handleComponentReordering(com.vaadin.event.dd.DragAndDropEvent event) -
handleDropFromLayout
protected abstract void handleDropFromLayout(com.vaadin.event.dd.DragAndDropEvent event) -
getTargetLayoutType
-
handleHTML5Drop
protected void handleHTML5Drop(com.vaadin.event.dd.DragAndDropEvent event) -
resolveComponentFromHTML5Drop
protected com.vaadin.ui.Component resolveComponentFromHTML5Drop(com.vaadin.event.dd.DragAndDropEvent event) -
handleDropFromAbsoluteParentLayout
protected void handleDropFromAbsoluteParentLayout(com.vaadin.event.dd.DragAndDropEvent event) Handles a drop by a component which has an absolute layout as parent. In this case the component is moved.- Parameters:
event
- The drag and drop event
-
drop
public void drop(com.vaadin.event.dd.DragAndDropEvent event) - Specified by:
drop
in interfacecom.vaadin.event.dd.DropHandler
-
getAcceptCriterion
public com.vaadin.event.dd.acceptcriteria.AcceptCriterion getAcceptCriterion()- Specified by:
getAcceptCriterion
in interfacecom.vaadin.event.dd.DropHandler
-