src/java.desktop/share/classes/java/awt/dnd/peer/DropTargetPeer.java

Print this page




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.awt.dnd.peer;
  27 
  28 import java.awt.dnd.DropTarget;
  29 
  30 /**
  31  * <p>
  32  * The DropTargetPeer class is the interface to the platform dependent
  33  * DnD facilities. Since the DnD system is based on the native platform's
  34  * facilities, a DropTargetPeer will be associated with a ComponentPeer
  35  * of the nearsest enclosing native Container (in the case of lightweights)
  36  * </p>
  37  *
  38  * @since 1.2
  39  *
  40  */
  41 
  42 public interface DropTargetPeer {
  43 
  44     /**
  45      * Add the DropTarget to the System
  46      *
  47      * @param dt The DropTarget effected
  48      */
  49 
  50     void addDropTarget(DropTarget dt);
  51 
  52     /**
  53      * Remove the DropTarget from the system
  54      *
  55      * @param dt The DropTarget effected


  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.awt.dnd.peer;
  27 
  28 import java.awt.dnd.DropTarget;
  29 
  30 /**
  31  * <p>
  32  * The DropTargetPeer class is the interface to the platform dependent
  33  * DnD facilities. Since the DnD system is based on the native platform's
  34  * facilities, a DropTargetPeer will be associated with a ComponentPeer
  35  * of the nearest enclosing native Container (in the case of lightweights)
  36  * </p>
  37  *
  38  * @since 1.2
  39  *
  40  */
  41 
  42 public interface DropTargetPeer {
  43 
  44     /**
  45      * Add the DropTarget to the System
  46      *
  47      * @param dt The DropTarget effected
  48      */
  49 
  50     void addDropTarget(DropTarget dt);
  51 
  52     /**
  53      * Remove the DropTarget from the system
  54      *
  55      * @param dt The DropTarget effected