use of org.activityinfo.ui.client.component.formdesigner.drop.DropControllerExtended in project activityinfo by bedatadriven.
the class DragMonitor method dragEnd.
public void dragEnd() {
try {
if (!widgetAdded && dragContext != null && dragContext.draggable instanceof DnDLabel) {
DropControllerExtended dropController = formDesigner.getDropControllerRegistry().getRootDropController();
// force to create positioner
dropController.onEnter(dragContext);
// set it to end
dropController.setPositionerToEnd();
// drop
dropController.onPreviewDrop(dragContext);
}
} catch (VetoDragException e) {
// do nothing
} finally {
reset();
}
}
Aggregations