1. /*
  2. * @(#)DragSourceEvent.java 1.13 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.dnd;
  11. import java.awt.dnd.DragSourceContext;
  12. import java.util.EventObject;
  13. /**
  14. * This class is the base class for
  15. * <code>DragSourceDragEvent</code> and
  16. * <code>DragSourceDropEvent</code>.
  17. * @since 1.2
  18. *
  19. */
  20. public class DragSourceEvent extends EventObject {
  21. /**
  22. * Construct a <code>DragSourceEvent</code>
  23. * given a specified <code>DragSourceContext</code>.
  24. * <P>
  25. * @param dsc the <code>DragSourceContext</code>
  26. */
  27. public DragSourceEvent(DragSourceContext dsc) { super(dsc); }
  28. /**
  29. * This method returns the <code>DragSourceContext</code> that
  30. * originated the event.
  31. * <P>
  32. * @return the <code>DragSourceContext</code> that originated the event
  33. */
  34. public DragSourceContext getDragSourceContext() {
  35. return (DragSourceContext)getSource();
  36. }
  37. }