home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / dnd / DropTargetEvent.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.3 KB  |  61 lines

  1. /*
  2.  * @(#)DropTargetEvent.java    1.6 98/03/18
  3.  *
  4.  * Copyright 1997, 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt.dnd;
  16.  
  17. import java.util.EventObject;
  18.  
  19. import java.awt.Component;
  20. import java.awt.Point;
  21.  
  22. import java.awt.datatransfer.DataFlavor;
  23.  
  24. import java.awt.dnd.DropTarget;
  25. import java.awt.dnd.DropTargetContext;
  26.  
  27. /**
  28.  * <p>
  29.  * The DropTargetEvent is the base class for both the DropTargetDragEvent and
  30.  * The DropTargetDropEvent. It encapsulates the current state of the Drag and
  31.  * Drop operations, in particular the current DropTargetContext.
  32.  * </p>
  33.  *
  34.  * @version 1.6
  35.  * @since JDK1.2
  36.  *
  37.  */
  38.  
  39. public class DropTargetEvent extends java.util.EventObject {
  40.  
  41.     /**
  42.      * Construct a DropTargetEvent
  43.      */
  44.  
  45.     public DropTargetEvent(DropTargetContext dtc) {
  46.     super(dtc.getDropTarget());
  47.  
  48.     context  = dtc;
  49.     }
  50.  
  51.     /**
  52.      * @return the DropTargetContext
  53.      */
  54.  
  55.     public DropTargetContext getDropTargetContext() {
  56.     return context;
  57.     }
  58.  
  59.     protected DropTargetContext   context;
  60. }
  61.