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 Summary
ConstructorsConstructorDescriptionAbsoluteLayoutTargetDetails(DDAbsoluteLayout layout, Map<String, Object> rawDropData) Constructor -
Method Summary
Modifier and TypeMethodDescriptionintThe absolute left coordinate in pixels measured from the windows left edgeintThe absolute top coordinate in pixels measured from the windows top edgeintThe width of the dragged component measured in pixelsintThe height of the dragged component measured in pixelscom.vaadin.shared.MouseEventDetailsSome details about the mouse eventintThe relative left coordinate in pixels measured from the containers left edgeintThe relative top coordinate in pixels measured from the containers top edgeMethods inherited from class com.vaadin.event.dd.TargetDetailsImpl
getData, getTarget, setData
-
Constructor Details
-
AbsoluteLayoutTargetDetails
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:
getMouseEventin classcom.vaadin.event.dd.TargetDetailsImpl- Returns:
- details about the actual event that caused the event details. Practically mouse move or mouse up.
-