@Override
public void onBrowserEvent(Context context, Element parent, TaskProxy value, NativeEvent event,
ValueUpdater<TaskProxy> valueUpdater) {
if ("dragstart".equals(event.getType())) {
// 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);
}
}