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 drag source 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>DragSourceEvent</code> listener 0N/A * and override the methods for the events of interest. (If you implement the 0N/A * <code>DragSourceListener</code> interface, you have to define all of 0N/A * the methods in it. This abstract class defines null methods for them 0N/A * all, so you only have to define methods for events you care about.) 0N/A * Create a listener object using the extended class and then register it with 0N/A * a <code>DragSource</code>. When the drag enters, moves over, or exits 0N/A * a drop site, when the drop action changes, and when the drag ends, the 0N/A * relevant method in the listener object is invoked, and the 0N/A * <code>DragSourceEvent</code> is passed to it. 0N/A * The drop site is <i>associated with the previous <code>dragEnter()</code> 0N/A * invocation</i> if the latest invocation of <code>dragEnter()</code> on this 0N/A * adapter corresponds to that drop site and is not followed by a 0N/A * <code>dragExit()</code> invocation on this adapter. 0N/A * @see DragSourceEvent 0N/A * @see DragSourceListener 0N/A * @see DragSourceMotionListener 0N/A * @author David Mendenhall 0N/A * Called as the cursor's hotspot enters a platform-dependent drop site. 0N/A * This method is invoked when all the following conditions are true: 0N/A * <LI>The cursor's hotspot enters the operable part of 0N/A * a platform-dependent drop site. 0N/A * <LI>The drop site is active. 0N/A * <LI>The drop site accepts the drag. 0N/A * @param dsde the <code>DragSourceDragEvent</code> 0N/A * Called as the cursor's hotspot moves over a platform-dependent drop site. 0N/A * This method is invoked when all the following conditions are true: 0N/A * <LI>The cursor's hotspot has moved, but still intersects the 0N/A * operable part of the drop site associated with the previous 0N/A * dragEnter() invocation. 0N/A * <LI>The drop site is still active. 0N/A * <LI>The drop site accepts the drag. 0N/A * @param dsde the <code>DragSourceDragEvent</code> 0N/A * Called whenever the mouse is moved during a drag operation. 0N/A * @param dsde the <code>DragSourceDragEvent</code> 0N/A * Called when the user has modified the drop gesture. 0N/A * This method is invoked when the state of the input 0N/A * device(s) that the user is interacting with changes. 0N/A * Such devices are typically the mouse buttons or keyboard 0N/A * modifiers that the user is interacting with. 0N/A * @param dsde the <code>DragSourceDragEvent</code> 0N/A * Called as the cursor's hotspot exits a platform-dependent drop site. 0N/A * This method is invoked when any of the following conditions are true: 0N/A * <LI>The cursor's hotspot no longer intersects the operable part 0N/A * of the drop site associated with the previous dragEnter() invocation. 0N/A * <LI>The drop site associated with the previous dragEnter() invocation 0N/A * is no longer active. 0N/A * <LI> The drop site associated with the previous dragEnter() invocation 0N/A * has rejected the drag. 0N/A * @param dse the <code>DragSourceEvent</code> 0N/A * This method is invoked to signify that the Drag and Drop 0N/A * operation is complete. The getDropSuccess() method of 0N/A * the <code>DragSourceDropEvent</code> can be used to 0N/A * determine the termination state. The getDropAction() method 0N/A * returns the operation that the drop site selected 0N/A * to apply to the Drop operation. Once this method is complete, the 0N/A * current <code>DragSourceContext</code> and 0N/A * associated resources become invalid. 0N/A * @param dsde the <code>DragSourceDropEvent</code>