public class DDUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static HorizontalDropLocation |
getHorizontalDropLocation(com.google.gwt.dom.client.Element element,
com.google.gwt.dom.client.NativeEvent event,
double leftRightRatio)
Get horizontal drop location.
|
static VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.dom.client.Element element,
int offsetHeight,
int clientY,
double topBottomRatio)
Get vertical drop location.
|
static VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.dom.client.Element element,
int offsetHeight,
com.google.gwt.dom.client.NativeEvent event,
double topBottomRatio)
Get vertical drop location.
|
static VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.dom.client.Element element,
com.google.gwt.dom.client.NativeEvent event,
double topBottomRatio)
Get vertical drop location.
|
public static VerticalDropLocation getVerticalDropLocation(com.google.gwt.dom.client.Element element, com.google.gwt.dom.client.NativeEvent event, double topBottomRatio)
element - the drop target elementevent - the latest NativeEvent that relates to this drag
operationtopBottomRatio - the ratio that determines how big portion of the element on
each end counts for indicating desire to drop above or below
the element rather than on top of itpublic static VerticalDropLocation getVerticalDropLocation(com.google.gwt.dom.client.Element element, int offsetHeight, com.google.gwt.dom.client.NativeEvent event, double topBottomRatio)
element - the drop target elementoffsetHeight - the height of an element relative to the layoutevent - the latest NativeEvent that relates to this drag
operationtopBottomRatio - the ratio that determines how big portion of the element on
each end counts for indicating desire to drop above or below
the element rather than on top of itpublic static VerticalDropLocation getVerticalDropLocation(com.google.gwt.dom.client.Element element, int offsetHeight, int clientY, double topBottomRatio)
element - the drop target elementoffsetHeight - the height of an element relative to the layoutclientY - the y-coordinate of the latest event that relates to this drag
operationtopBottomRatio - the ratio that determines how big portion of the element on
each end counts for indicating desire to drop above or below
the element rather than on top of itpublic static HorizontalDropLocation getHorizontalDropLocation(com.google.gwt.dom.client.Element element, com.google.gwt.dom.client.NativeEvent event, double leftRightRatio)
element - the drop target elementevent - the latest NativeEvent that relates to this drag
operationleftRightRatio - the ratio that determines how big portion of the element on
each end counts for indicating desire to drop beside the
element rather than on top of itCopyright © 2021 Vaadin Ltd. All rights reserved.