Class DDGridLayout.GridLayoutTargetDetails

java.lang.Object
com.vaadin.event.dd.TargetDetailsImpl
io.jmix.ui.widget.addon.dragdroplayouts.DDGridLayout.GridLayoutTargetDetails
All Implemented Interfaces:
com.vaadin.event.dd.TargetDetails, Serializable
Enclosing class:
DDGridLayout

public class DDGridLayout.GridLayoutTargetDetails extends com.vaadin.event.dd.TargetDetailsImpl
Target details for a drop event
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.shared.ui.dd.HorizontalDropLocation
    Returns the horizontal location within the cell the component was dropped
    com.vaadin.shared.MouseEventDetails
    Some details about the mouse event
    int
    Over which column was the component dropped
    com.vaadin.ui.Component
    Returns the component over which the dragged component was dropped.
    int
    Over which row was the component dropped
    com.vaadin.shared.ui.dd.VerticalDropLocation
    Returns the vertical location within the cell the component was dropped
    boolean
    Was the dropped component dropped in an empty cell

    Methods inherited from class com.vaadin.event.dd.TargetDetailsImpl

    getData, getTarget, setData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GridLayoutTargetDetails

      protected GridLayoutTargetDetails(Map<String,Object> rawDropData)
  • Method Details

    • getOverComponent

      public com.vaadin.ui.Component getOverComponent()
      Returns the component over which the dragged component was dropped. Returns NULL if no component was under the dragged component
      Returns:
    • getOverRow

      public int getOverRow()
      Over which row was the component dropped
      Returns:
      The index of the row over which the component was dropped
    • getOverColumn

      public int getOverColumn()
      Over which column was the component dropped
      Returns:
      The index of the column over which the component was dropped
    • getHorizontalDropLocation

      public com.vaadin.shared.ui.dd.HorizontalDropLocation getHorizontalDropLocation()
      Returns the horizontal location within the cell the component was dropped
      Returns:
    • getVerticalDropLocation

      public com.vaadin.shared.ui.dd.VerticalDropLocation getVerticalDropLocation()
      Returns the vertical location within the cell the component was dropped
      Returns:
    • overEmptyCell

      public boolean overEmptyCell()
      Was the dropped component dropped in an empty cell
      Returns:
    • getMouseEvent

      public com.vaadin.shared.MouseEventDetails getMouseEvent()
      Some details about the mouse event
      Overrides:
      getMouseEvent in class com.vaadin.event.dd.TargetDetailsImpl
      Returns:
      details about the actual event that caused the event details. Practically mouse move or mouse up.