com.google.gwt.event.dom.client.DropEvent Java Examples

The following examples show how to use com.google.gwt.event.dom.client.DropEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CubaMainTabSheetWidget.java    From cuba with Apache License 2.0 6 votes vote down vote up
public CubaMainTabSheetWidget() {
    RootPanel rootPanel = RootPanel.get();

    dragEndHandler = rootPanel.addBitlessDomHandler(event ->
                    handleBadDD(event.getNativeEvent()),
                    DragEndEvent.getType());

    dropHandler = rootPanel.addBitlessDomHandler(event ->
                    handleBadDD(event.getNativeEvent()),
                    DropEvent.getType());

    dragLeaveHandler = rootPanel.addBitlessDomHandler(event -> {
        Element element = event.getRelativeElement();
        if (element == null || element == rootPanel.getElement()) {
            VDragAndDropManager.get().interruptDrag();
        }
    }, DragLeaveEvent.getType());
}
 
Example #2
Source File: HandlerPanel.java    From appinventor-extensions with Apache License 2.0 4 votes vote down vote up
public HandlerRegistration addDropHandler(DropHandler handler) {
  return addBitlessDomHandler(handler, DropEvent.getType());
}
 
Example #3
Source File: AbstractInput.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public com.google.gwt.event.shared.HandlerRegistration addDropHandler(DropHandler handler) {
	return this.addBitlessDomHandler(handler, DropEvent.getType());
}
 
Example #4
Source File: ListItem.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public HandlerRegistration addDropHandler(DropHandler handler) {
	return this.addBitlessDomHandler(handler, DropEvent.getType());
}
 
Example #5
Source File: Anchor.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public HandlerRegistration addDropHandler(DropHandler handler) {
	return this.addBitlessDomHandler(handler, DropEvent.getType());
}