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
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.shared.ui.dd.HorizontalDropLocation
Returns the horizontal location within the cell the component was droppedcom.vaadin.shared.MouseEventDetails
Some details about the mouse eventint
Over which column was the component droppedcom.vaadin.ui.Component
Returns the component over which the dragged component was dropped.int
Over which row was the component droppedcom.vaadin.shared.ui.dd.VerticalDropLocation
Returns the vertical location within the cell the component was droppedboolean
Was the dropped component dropped in an empty cellMethods inherited from class com.vaadin.event.dd.TargetDetailsImpl
getData, getTarget, setData
-
Constructor Details
-
GridLayoutTargetDetails
-
-
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 classcom.vaadin.event.dd.TargetDetailsImpl
- Returns:
- details about the actual event that caused the event details. Practically mouse move or mouse up.
-