jdk/src/share/classes/java/awt/dnd/DropTarget.java
changeset 22281 830790e8640d
parent 21957 97758de70fbd
child 23588 b0269b21e313
equal deleted inserted replaced
22280:384c863b2462 22281:830790e8640d
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   564      *
   564      *
   565      * This call is typically *only* called by the platform's
   565      * This call is typically *only* called by the platform's
   566      * DropTargetContextPeer as a drag operation encounters this
   566      * DropTargetContextPeer as a drag operation encounters this
   567      * DropTarget. Accessing the Context while no Drag is current
   567      * DropTarget. Accessing the Context while no Drag is current
   568      * has undefined results.
   568      * has undefined results.
       
   569      * @return the DropTargetContext associated with this DropTarget
   569      */
   570      */
   570 
   571 
   571     protected DropTargetContext createDropTargetContext() {
   572     protected DropTargetContext createDropTargetContext() {
   572         return new DropTargetContext(this);
   573         return new DropTargetContext(this);
   573     }
   574     }
   764 
   765 
   765     /*********************************************************************/
   766     /*********************************************************************/
   766 
   767 
   767     /**
   768     /**
   768      * create an embedded autoscroller
   769      * create an embedded autoscroller
   769      * <P>
   770      *
   770      * @param c the <code>Component</code>
   771      * @param c the <code>Component</code>
   771      * @param p the <code>Point</code>
   772      * @param p the <code>Point</code>
       
   773      * @return an embedded autoscroller
   772      */
   774      */
   773 
   775 
   774     protected DropTargetAutoScroller createDropTargetAutoScroller(Component c, Point p) {
   776     protected DropTargetAutoScroller createDropTargetAutoScroller(Component c, Point p) {
   775         return new DropTargetAutoScroller(c, p);
   777         return new DropTargetAutoScroller(c, p);
   776     }
   778     }