Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/mitre/cvw/DragSourceAdapter.java


1   package org.mitre.cvw;
2   
3   import java.awt.dnd.*;
4   
5   /**
6    * An abstract adapter class for receiving drag events.
7    * The methods in this class are empty. This class exists as
8    * convenience for creating listener objects.
9    * <p>
10   * Extend this class to create a <code>DragSourceEvent</code> listener 
11   * and override the methods for the events of interest. (If you implement the 
12   * <code>DragSourceListener</code> interface, you have to define all of
13   * the methods in it. This abstract class defines null methods for them
14   * all, so you can only have to define methods for events you care about.)
15   *
16   * @see DragSourceEvent
17   * @see DragSourceListener
18   *
19   * @version 1.0 04/30/99
20   * @author Deb Ercolini 
21   */
22  public abstract class DragSourceAdapter implements DragSourceListener {
23  
24      /**
25       * Invoked as the hotspot enters a platform dependent drop site
26       */
27      public void dragEnter(DragSourceDragEvent dsde) { }
28  
29      /**
30       * Invoked as the hotspot moves over a platform dependent drop site
31       */
32      public void dragOver(DragSourceDragEvent dsde) { }
33  
34      /**
35       * Invoked when the user has modified the drop gesture
36       */
37      public void dropActionChanged(DragSourceDragEvent dsde) { }
38  
39      /**
40       * Invoked as the hotspot exits a platform dependent drop site
41       */
42      public void dragExit(DragSourceEvent dse) { }
43  
44      /**
45       * Invoked as the operation completes
46       */
47      public void dragDropEnd(DragSourceDropEvent dsde) { }
48  
49    }