Class AbsoluteLayoutTargetDetails

java.lang.Object
com.vaadin.event.dd.TargetDetailsImpl
io.jmix.ui.widget.addon.dragdroplayouts.details.AbsoluteLayoutTargetDetails
All Implemented Interfaces:
com.vaadin.event.dd.TargetDetails, Serializable

public class AbsoluteLayoutTargetDetails extends com.vaadin.event.dd.TargetDetailsImpl
See Also:
  • Constructor Details

    • AbsoluteLayoutTargetDetails

      public AbsoluteLayoutTargetDetails(DDAbsoluteLayout layout, Map<String,Object> rawDropData)
      Constructor
      Parameters:
      rawDropData - Drop data
  • Method Details

    • getAbsoluteLeft

      public int getAbsoluteLeft()
      The absolute left coordinate in pixels measured from the windows left edge
      Returns:
      The amount of pixels from the left edge
    • getAbsoluteTop

      public int getAbsoluteTop()
      The absolute top coordinate in pixels measured from the windows top edge
      Returns:
      The amount of pixels from the top edge
    • getRelativeLeft

      public int getRelativeLeft()
      The relative left coordinate in pixels measured from the containers left edge
      Returns:
      The amount of pixels from the left edge
    • getRelativeTop

      public int getRelativeTop()
      The relative top coordinate in pixels measured from the containers top edge
      Returns:
      The amount of pixels from the top edge
    • getComponentHeight

      public int getComponentHeight()
      The width of the dragged component measured in pixels
      Returns:
      The width in pixels
    • getComponentWidth

      public int getComponentWidth()
      The height of the dragged component measured in pixels
      Returns:
      The height in pixels
    • 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.