def onEnter(self, context):
     super.onEnter(context)
     assert draggableList.size() == 0
     
     dropTargetClientWidth = DOMUtil.getClientWidth(dropTarget.getElement())
     dropTargetClientHeight = DOMUtil.getClientHeight(dropTarget.getElement())
     WidgetLocation dropTargetLocation = WidgetLocation(dropTarget, None)
     dropTargetOffsetX = dropTargetLocation.getLeft()
     + DOMUtil.getBorderLeft(dropTarget.getElement())
     dropTargetOffsetY = dropTargetLocation.getTop() + DOMUtil.getBorderTop(dropTarget.getElement())
     
     int draggableAbsoluteLeft = context.draggable.getAbsoluteLeft()
     int draggableAbsoluteTop = context.draggable.getAbsoluteTop()
     for Iterator iterator = context.selectedWidgets.iterator(); iterator.hasNext();:
Ejemplo n.º 2
0
     
     
     if context.dropController is not None:
         context.dropController.onMove(context)
     
 
 
 def dragStart(self):
     super.dragStart()
     
     WidgetLocation currentDraggableLocation = WidgetLocation(context.draggable,
     context.boundaryPanel)
     if getBehaviorDragProxy():
         movablePanel = newDragProxy(context)
         context.boundaryPanel.add(movablePanel, currentDraggableLocation.getLeft(),
         currentDraggableLocation.getTop())
      else:
         saveSelectedWidgetsLocationAndStyle()
         AbsolutePanel container = AbsolutePanel()
         DOM.setStyleAttribute(container.getElement(), "overflow", "visible")
         
         container.setPixelSize(context.draggable.getOffsetWidth(),
         context.draggable.getOffsetHeight())
         context.boundaryPanel.add(container, currentDraggableLocation.getLeft(),
         currentDraggableLocation.getTop())
         
         int draggableAbsoluteLeft = context.draggable.getAbsoluteLeft()
         int draggableAbsoluteTop = context.draggable.getAbsoluteTop()
         for Iterator iterator = context.selectedWidgets.iterator(); iterator.hasNext();:
             Widget widget = (Widget) iterator.next()
             if widget != context.draggable: