< prev index next >

src/java.desktop/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java

Print this page




 481                 } else {
 482                     dtl.dragOver(dtde);
 483                 }
 484 
 485                 if (dragRejected) {
 486                     currentDA = DnDConstants.ACTION_NONE;
 487                 }
 488             } catch (Exception e) {
 489                 e.printStackTrace();
 490                 currentDA = DnDConstants.ACTION_NONE;
 491             }
 492         } else {
 493             currentDA = DnDConstants.ACTION_NONE;
 494         }
 495     }
 496 
 497     /**
 498      * upcall to handle the Drop message
 499      */
 500 
 501     private void handleDropMessage(final Component component,
 502                                    final int x, final int y,
 503                                    final int dropAction, final int actions,
 504                                    final long[] formats,
 505                                    final long nativeCtxt) {
 506         postDropTargetEvent(component, x, y, dropAction, actions,
 507                             formats, nativeCtxt,
 508                             SunDropTargetEvent.MOUSE_DROPPED,
 509                             !SunDropTargetContextPeer.DISPATCH_SYNC);
 510     }
 511 
 512     /**
 513      *
 514      */
 515 
 516     protected void processDropMessage(SunDropTargetEvent event) {
 517         Component  c    = (Component)event.getSource();
 518         Point      hots = event.getPoint();
 519         DropTarget dt   = c.getDropTarget();
 520 
 521         dropStatus   = STATUS_WAIT; // drop pending ACK




 481                 } else {
 482                     dtl.dragOver(dtde);
 483                 }
 484 
 485                 if (dragRejected) {
 486                     currentDA = DnDConstants.ACTION_NONE;
 487                 }
 488             } catch (Exception e) {
 489                 e.printStackTrace();
 490                 currentDA = DnDConstants.ACTION_NONE;
 491             }
 492         } else {
 493             currentDA = DnDConstants.ACTION_NONE;
 494         }
 495     }
 496 
 497     /**
 498      * upcall to handle the Drop message
 499      */
 500 
 501     protected void handleDropMessage(final Component component,
 502                                    final int x, final int y,
 503                                    final int dropAction, final int actions,
 504                                    final long[] formats,
 505                                    final long nativeCtxt) {
 506         postDropTargetEvent(component, x, y, dropAction, actions,
 507                             formats, nativeCtxt,
 508                             SunDropTargetEvent.MOUSE_DROPPED,
 509                             !SunDropTargetContextPeer.DISPATCH_SYNC);
 510     }
 511 
 512     /**
 513      *
 514      */
 515 
 516     protected void processDropMessage(SunDropTargetEvent event) {
 517         Component  c    = (Component)event.getSource();
 518         Point      hots = event.getPoint();
 519         DropTarget dt   = c.getDropTarget();
 520 
 521         dropStatus   = STATUS_WAIT; // drop pending ACK


< prev index next >