* the event that fires when dragging ends.
*/
public void onDragEnd(final DragEndEvent event)
{
final DragContext context = event.getContext();
final GadgetPanel gadgetZone = (GadgetPanel) context.draggable;
int zoneNumber = 0;
int zoneIndex = 0;
final Widget dropTarget = context.finalDropController.getDropTarget();
if (dropTarget instanceof DropZonePanel)
{
final DropZonePanel dropPanel = (DropZonePanel) dropTarget;
zoneNumber = dropPanel.getZoneNumber();
zoneIndex = dropPanel.getVisibleGadgetPosition(gadgetZone);
}
gadgetZone.setDropZone(dropTarget);
GadgetModel.getInstance().reorder(
new ReorderGadgetRequest(tabId, gadgetZone.getGadgetData().getId(), zoneNumber, zoneIndex));
// Not rerendering here because FF has an issue with rpc communitcations breaking afterwards.
// gadgetZone.rerender();
}