transferable.setData("propertyId", headerCell.cid);
break;
}
}
VDragEvent ev = VDragAndDropManager.get().startDrag(
transferable, event, true);
if (dragmode == DRAGMODE_MULTIROW && isMultiSelectModeAny()
&& rowKeyIsSelected(rowKey)) {
// Create a drag image of ALL rows (ie6,7 has a different
// DOM structure)
if (BrowserInfo.get().isIE6() || BrowserInfo.get().isIE7()) {
ev.createDragImage(scrollBody.getElement(), true);
} else {
ev.createDragImage(
(Element) scrollBody.tBodyElement.cast(), true);
}
// Hide rows which are not selected
Element dragImage = ev.getDragImage();
int i = 0;
for (Iterator<Widget> iterator = scrollBody.iterator(); iterator
.hasNext();) {
VScrollTableRow next = (VScrollTableRow) iterator
.next();
Element child;
if (BrowserInfo.get().isIE6()
|| BrowserInfo.get().isIE7()) {
child = (Element) dragImage.getChild(1).getChild(0)
.getChild(i++);
} else {
child = (Element) dragImage.getChild(i++);
}
if (!rowKeyIsSelected(next.rowKey)) {
child.getStyle().setVisibility(Visibility.HIDDEN);
}
}
} else {
ev.createDragImage(getElement(), true);
}
if (type == Event.ONMOUSEDOWN) {
event.preventDefault();
}
event.stopPropagation();