widgetDragController.registerDropController(widgetDropController);
// Add each widget to the VerticalPanel and enable dragging via its DragTarget.
for (T widget : widgets) {
currentVerticalPanel.add(widget);
widgetDragController.makeDraggable(widget, getDragTarget.apply(widget));
}
}
/**
* Returns the number of Widgets on the VerticalPanel.