2362N/A * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * An abstract adapter class for receiving drop target events. The methods in 0N/A * this class are empty. This class exists only as a convenience for creating 0N/A * Extend this class to create a <code>DropTargetEvent</code> listener 0N/A * and override the methods for the events of interest. (If you implement the 0N/A * <code>DropTargetListener</code> interface, you have to define all of 0N/A * the methods in it. This abstract class defines a null implementation for 0N/A * every method except <code>drop(DropTargetDropEvent)</code>, so you only have 0N/A * to define methods for events you care about.) You must provide an 0N/A * implementation for at least <code>drop(DropTargetDropEvent)</code>. This 0N/A * method cannot have a null implementation because its specification requires 0N/A * that you either accept or reject the drop, and, if accepted, indicate 0N/A * whether the drop was successful. 0N/A * Create a listener object using the extended class and then register it with 0N/A * a <code>DropTarget</code>. When the drag enters, moves over, or exits 0N/A * the operable part of the drop site for that <code>DropTarget</code>, when 0N/A * the drop action changes, and when the drop occurs, the relevant method in 0N/A * the listener object is invoked, and the <code>DropTargetEvent</code> is 0N/A * The operable part of the drop site for the <code>DropTarget</code> is 0N/A * the part of the associated <code>Component</code>'s geometry that is not 0N/A * obscured by an overlapping top-level window or by another 0N/A * <code>Component</code> higher in the Z-order that has an associated active 0N/A * <code>DropTarget</code>. 0N/A * During the drag, the data associated with the current drag operation can be 0N/A * retrieved by calling <code>getTransferable()</code> on 0N/A * <code>DropTargetDragEvent</code> instances passed to the listener's 0N/A * Note that <code>getTransferable()</code> on the 0N/A * <code>DropTargetDragEvent</code> instance should only be called within the 0N/A * respective listener's method and all the necessary data should be retrieved 0N/A * from the returned <code>Transferable</code> before that method returns. 0N/A * @see DropTargetEvent 0N/A * @see DropTargetListener 0N/A * @author David Mendenhall 0N/A * Called while a drag operation is ongoing, when the mouse pointer enters 0N/A * the operable part of the drop site for the <code>DropTarget</code> 0N/A * registered with this listener. 0N/A * @param dtde the <code>DropTargetDragEvent</code> 0N/A * Called when a drag operation is ongoing, while the mouse pointer is still 0N/A * over the operable part of the drop site for the <code>DropTarget</code> 0N/A * registered with this listener. 0N/A * @param dtde the <code>DropTargetDragEvent</code> 0N/A * Called if the user has modified 0N/A * the current drop gesture. 0N/A * @param dtde the <code>DropTargetDragEvent</code> 0N/A * Called while a drag operation is ongoing, when the mouse pointer has 0N/A * exited the operable part of the drop site for the 0N/A * <code>DropTarget</code> registered with this listener. 0N/A * @param dte the <code>DropTargetEvent</code>