com.vaadin.terminal.gwt.client.ui.dd
Class DDUtil

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ui.dd.DDUtil

public class DDUtil
extends Object


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)
Deprecated. use the version with the actual event instead of detected clientY value

Parameters:
element -
clientY -
topBottomRatio -
Returns:

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)
Deprecated. use the version with the actual event

Parameters:
element -
clientX -
leftRightRatio -
Returns:


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.