List of usage examples for com.google.gwt.dom.client BrowserEvents DROP
String DROP
To view the source code for com.google.gwt.dom.client BrowserEvents DROP.
Click Source Link
From source file:com.vaadin.client.extensions.DropTargetExtensionConnector.java
License:Apache License
@Override protected void extend(ServerConnector target) { dropTargetWidget = ((ComponentConnector) target).getWidget(); EventTarget dropTarget = getDropTargetElement().cast(); // dragenter event dropTarget.addEventListener(BrowserEvents.DRAGENTER, dragEnterListener); // dragover event dropTarget.addEventListener(BrowserEvents.DRAGOVER, dragOverListener); // dragleave event dropTarget.addEventListener(BrowserEvents.DRAGLEAVE, dragLeaveListener); // drop event dropTarget.addEventListener(BrowserEvents.DROP, dropListener); }
From source file:com.vaadin.client.extensions.DropTargetExtensionConnector.java
License:Apache License
@Override public void onUnregister() { super.onUnregister(); EventTarget dropTarget = getDropTargetElement().cast(); // Remove listeners dropTarget.removeEventListener(BrowserEvents.DRAGENTER, dragEnterListener); dropTarget.removeEventListener(BrowserEvents.DRAGOVER, dragOverListener); dropTarget.removeEventListener(BrowserEvents.DRAGLEAVE, dragLeaveListener); dropTarget.removeEventListener(BrowserEvents.DROP, dropListener); }