We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.ui.dd.
Class DDUtil
java.lang.Object
com.vaadin.terminal.gwt.client.ui.dd.DDUtil
- extends Object
public class DDUtil
Constructor Summary | |
---|---|
DDUtil()
|
Method Summary | |
---|---|
static HorizontalDropLocation |
getHorizontalDropLocation(com.google.gwt.user.client.Element element,
int clientX,
double leftRightRatio)
Deprecated. use the version with the actual event |
static HorizontalDropLocation |
getHorizontalDropLocation(com.google.gwt.user.client.Element element,
com.google.gwt.dom.client.NativeEvent event,
double leftRightRatio)
|
static VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.user.client.Element element,
int clientY,
double topBottomRatio)
Deprecated. use the version with the actual event instead of detected clientY value |
static VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.user.client.Element element,
int offsetHeight,
int clientY,
double topBottomRatio)
|
static VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.user.client.Element element,
int offsetHeight,
com.google.gwt.dom.client.NativeEvent event,
double topBottomRatio)
|
static VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.user.client.Element element,
com.google.gwt.dom.client.NativeEvent event,
double topBottomRatio)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DDUtil
public DDUtil()
Method Detail |
---|
getVerticalDropLocation
@Deprecated
public static VerticalDropLocation getVerticalDropLocation(com.google.gwt.user.client.Element element,
int clientY,
double topBottomRatio)
- Parameters:
element
-clientY
-topBottomRatio
-- Returns:
Deprecated. use the version with the actual event instead of detected clientY value
getVerticalDropLocation
public static VerticalDropLocation getVerticalDropLocation(com.google.gwt.user.client.Element element,
com.google.gwt.dom.client.NativeEvent event,
double topBottomRatio)
getVerticalDropLocation
public static VerticalDropLocation getVerticalDropLocation(com.google.gwt.user.client.Element element,
int offsetHeight,
com.google.gwt.dom.client.NativeEvent event,
double topBottomRatio)
getVerticalDropLocation
public static VerticalDropLocation getVerticalDropLocation(com.google.gwt.user.client.Element element,
int offsetHeight,
int clientY,
double topBottomRatio)
getHorizontalDropLocation
public static HorizontalDropLocation getHorizontalDropLocation(com.google.gwt.user.client.Element element,
com.google.gwt.dom.client.NativeEvent event,
double leftRightRatio)
getHorizontalDropLocation
@Deprecated
public static HorizontalDropLocation getHorizontalDropLocation(com.google.gwt.user.client.Element element,
int clientX,
double leftRightRatio)
- Parameters:
element
-clientX
-leftRightRatio
-- Returns:
Deprecated. use the version with the actual event