List of usage examples for com.vaadin.client WidgetUtil getElementUnderMouse
public static Element getElementUnderMouse(NativeEvent event)
From source file:com.haulmont.cuba.web.widgets.client.tabsheet.CubaTabSheetWidget.java
License:Apache License
protected void handleBadDD(NativeEvent event) { Element target = WidgetUtil.getElementUnderMouse(event); if (target == null) { VDragAndDropManager.get().interruptDrag(); return;/* ww w . ja v a 2 s .c o m*/ } Node targetParent = DOM.asOld(target).getParentNode(); if (!getElement().isOrHasChild(targetParent)) { VDragAndDropManager.get().interruptDrag(); } }