if (context.dropController != null) {
context.dropController.onEnter(context);
}
for (Widget widget : context.selectedWidgets) {
Location location = widgetLocation.get(widget);
int relativeX = location.getLeft() - draggableAbsoluteLeft;
int relativeY = location.getTop() - draggableAbsoluteTop;
container.add(widget, relativeX, relativeY);
}
movablePanel = container;
}
movablePanel.addStyleName(PRIVATE_CSS_MOVABLE_PANEL);
// one time calculation of boundary panel location for efficiency during
// dragging
Location widgetLocation = new WidgetLocation(context.boundaryPanel, null);
boundaryOffsetX = widgetLocation.getLeft()
+ DOMUtil.getBorderLeft(context.boundaryPanel.getElement());
boundaryOffsetY = widgetLocation.getTop()
+ DOMUtil.getBorderTop(context.boundaryPanel.getElement());
dropTargetClientWidth = DOMUtil.getClientWidth(boundaryPanel.getElement());
dropTargetClientHeight = DOMUtil.getClientHeight(boundaryPanel.getElement());
}