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 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

      public abstract Class<? extends com.vaadin.ui.HasComponents> 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 interface com.vaadin.event.dd.DropHandler
    • getAcceptCriterion

      public com.vaadin.event.dd.acceptcriteria.AcceptCriterion getAcceptCriterion()
      Specified by:
      getAcceptCriterion in interface com.vaadin.event.dd.DropHandler