headerCell.cid);
break;
}
}
VDragEvent ev = VDragAndDropManager.get()
.startDrag(transferable, event, true);
if (dragmode == DRAGMODE_MULTIROW
&& selectMode == SELECT_MODE_MULTI
&& selectedRowKeys
.contains("" + rowKey)) {
ev.createDragImage(
(Element) scrollBody.tBodyElement
.cast(), true);
Element dragImage = ev.getDragImage();
int i = 0;
for (Iterator<Widget> iterator = scrollBody
.iterator(); iterator.hasNext();) {
VScrollTableRow next = (VScrollTableRow) iterator
.next();
Element child = (Element) dragImage
.getChild(i++);
if (!selectedRowKeys.contains(""
+ next.rowKey)) {
child.getStyle().setVisibility(
Visibility.HIDDEN);
}
}
} else {
ev.createDragImage(getElement(), true);
}
// because we are preventing the default (due to
// prevent text selection) we must ensure
// gaining the focus.
ensureFocus();