Class DefaultHorizontalLayoutDropHandler
java.lang.Object
io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.AbstractDefaultLayoutDropHandler
io.jmix.ui.widget.addon.dragdroplayouts.v7.drophandlers.DefaultHorizontalLayoutDropHandler
- All Implemented Interfaces:
com.vaadin.event.dd.DropHandler
,Serializable
A default drop handler for horizontal layouts
- Since:
- 0.6.0
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructorDefaultHorizontalLayoutDropHandler
(com.vaadin.ui.Alignment dropCellAlignment) Constructor -
Method Summary
Modifier and TypeMethodDescriptionClass<com.vaadin.v7.ui.HorizontalLayout>
protected void
handleComponentReordering
(com.vaadin.event.dd.DragAndDropEvent event) Called when a component changed location within the layoutprotected void
handleDropFromLayout
(com.vaadin.event.dd.DragAndDropEvent event) Handle a drop from another layoutprotected void
handleHTML5Drop
(com.vaadin.event.dd.DragAndDropEvent event) Methods inherited from class io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.AbstractDefaultLayoutDropHandler
drop, getAcceptCriterion, handleDropFromAbsoluteParentLayout, resolveComponentFromHTML5Drop
-
Constructor Details
-
DefaultHorizontalLayoutDropHandler
public DefaultHorizontalLayoutDropHandler()Constructor -
DefaultHorizontalLayoutDropHandler
public DefaultHorizontalLayoutDropHandler(com.vaadin.ui.Alignment dropCellAlignment) Constructor- Parameters:
dropCellAlignment
- The cell alignment of the component after it has been dropped
-
-
Method Details
-
handleComponentReordering
protected void handleComponentReordering(com.vaadin.event.dd.DragAndDropEvent event) Called when a component changed location within the layout- Specified by:
handleComponentReordering
in classAbstractDefaultLayoutDropHandler
- Parameters:
event
- The drag and drop event
-
handleDropFromLayout
protected void handleDropFromLayout(com.vaadin.event.dd.DragAndDropEvent event) Handle a drop from another layout- Specified by:
handleDropFromLayout
in classAbstractDefaultLayoutDropHandler
- Parameters:
event
- The drag and drop event
-
handleHTML5Drop
protected void handleHTML5Drop(com.vaadin.event.dd.DragAndDropEvent event) - Overrides:
handleHTML5Drop
in classAbstractDefaultLayoutDropHandler
-
getTargetLayoutType
- Specified by:
getTargetLayoutType
in classAbstractDefaultLayoutDropHandler
-