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
ConstructorDescriptionAbsoluteLayoutTargetDetails
(DDAbsoluteLayout layout, Map<String, Object> rawDropData) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
The absolute left coordinate in pixels measured from the windows left edgeint
The absolute top coordinate in pixels measured from the windows top edgeint
The width of the dragged component measured in pixelsint
The height of the dragged component measured in pixelscom.vaadin.shared.MouseEventDetails
Some details about the mouse eventint
The relative left coordinate in pixels measured from the containers left edgeint
The 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:
getMouseEvent
in classcom.vaadin.event.dd.TargetDetailsImpl
- Returns:
- details about the actual event that caused the event details. Practically mouse move or mouse up.
-