Class DefaultGridLayoutDropHandler
java.lang.Object
io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.AbstractDefaultLayoutDropHandler
io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.DefaultGridLayoutDropHandler
- All Implemented Interfaces:
com.vaadin.event.dd.DropHandler
,Serializable
A default drop handler for GridLayout
- Since:
- 0.6.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructorDefaultGridLayoutDropHandler
(com.vaadin.ui.Alignment dropCellAlignment) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addComponent
(com.vaadin.event.dd.DragAndDropEvent event, com.vaadin.ui.Component component, int column, int row) Class<com.vaadin.ui.GridLayout>
protected void
handleComponentReordering
(com.vaadin.event.dd.DragAndDropEvent event) protected void
handleDropFromLayout
(com.vaadin.event.dd.DragAndDropEvent event) protected 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
-
DefaultGridLayoutDropHandler
public DefaultGridLayoutDropHandler()Default constructor -
DefaultGridLayoutDropHandler
public DefaultGridLayoutDropHandler(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) - Specified by:
handleComponentReordering
in classAbstractDefaultLayoutDropHandler
-
handleDropFromLayout
protected void handleDropFromLayout(com.vaadin.event.dd.DragAndDropEvent event) - Specified by:
handleDropFromLayout
in classAbstractDefaultLayoutDropHandler
-
handleHTML5Drop
protected void handleHTML5Drop(com.vaadin.event.dd.DragAndDropEvent event) - Overrides:
handleHTML5Drop
in classAbstractDefaultLayoutDropHandler
-
addComponent
protected void addComponent(com.vaadin.event.dd.DragAndDropEvent event, com.vaadin.ui.Component component, int column, int row) -
getTargetLayoutType
- Specified by:
getTargetLayoutType
in classAbstractDefaultLayoutDropHandler
-