public boolean cancelDragging() {
    if (!myDraggingNow) return false;
    myCancelled = true;
    if (myDetachingMode) {
      processDragOutCancel();
    }
    else {
      processDragCancel();
    }
    resetDragState();
    return true;
  }
public boolean cancelDragging()