/** * Handles "drag-start" events inside the element named "root". */ @UiHandler({"root"}) void onDragStart(DragStartEvent event, Element parent, Context context) { // Save the ID of the TaskProxy. DataTransfer dataTransfer = event.getDataTransfer(); dataTransfer.setData("text", String.valueOf(context.getIndex())); // Set the image. dataTransfer.setDragImage(parent, 25, 15); }
@Override public DataTransfer getDataTransfer() { return setGetData.getDataTransfer(); }
@Override public DataTransfer getDataTransfer() { return wrapper.getDataTransfer(); }
@Override public DataTransfer getDataTransfer() { return getDataTransfer(this); }
public static native void setDropEffect( DataTransfer dataTransfer, String effect ) /*-{ dataTransfer.dropEffect = effect; }-*/;
public DataTransfer getDataTransfer() { return event.getDataTransfer(); }
public DataTransfer getDataTransfer();