Example usage for com.vaadin.client WidgetUtil getElementFromPoint

List of usage examples for com.vaadin.client WidgetUtil getElementFromPoint

Introduction

In this page you can find the example usage for com.vaadin.client WidgetUtil getElementFromPoint.

Prototype

public static native Element getElementFromPoint(int clientX, int clientY)
;

Source Link

Document

Returns the topmost element of from given coordinates.

Usage

From source file:com.haulmont.cuba.web.widgets.client.addons.dragdroplayouts.ui.VDDAbstractOrderedLayoutDropHandler.java

License:Apache License

protected Slot findSlotAtPosition(int clientX, int clientY, NativeEvent event) {
    com.google.gwt.dom.client.Element elementUnderMouse = WidgetUtil.getElementFromPoint(clientX, clientY);
    if (getLayout().getElement() != elementUnderMouse) {
        return getSlot(DOM.asOld(elementUnderMouse), event);
    }//from   www  . ja v a  2s.  co m
    return null;
}