1. /*
  2. * @(#)FlavorListener.java 1.3 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.datatransfer;
  8. import java.util.EventListener;
  9. /**
  10. * Defines an object which listens for {@link FlavorEvent}s.
  11. *
  12. * @version 1.3 12/19/03
  13. * @author Alexander Gerasimov
  14. * @since 1.5
  15. */
  16. public interface FlavorListener extends EventListener {
  17. /**
  18. * Invoked when the target {@link Clipboard} of the listener
  19. * has changed its available {@link DataFlavor}s.
  20. * <p>
  21. * Some notifications may be redundant — they are not
  22. * caused by a change of the set of DataFlavors available
  23. * on the clipboard.
  24. * For example, if the clipboard subsystem supposes that
  25. * the system clipboard's contents has been changed but it
  26. * can't ascertain whether its DataFlavors have been changed
  27. * because of some exceptional condition when accessing the
  28. * clipboard, the notification is sent to ensure from omitting
  29. * a significant notification. Ordinarily, those redundant
  30. * notifications should be occasional.
  31. *
  32. * @param e a <code>FlavorEvent</code> object
  33. */
  34. void flavorsChanged(FlavorEvent e);
  35. }