1. /*
  2. * @(#)PopupMenuListener.java 1.6 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 javax.swing.event;
  11. import java.util.EventListener;
  12. /**
  13. * A popup menu listener
  14. *
  15. * @version 1.6 02/02/00
  16. * @author Arnaud Weber
  17. */
  18. public interface PopupMenuListener extends EventListener {
  19. /**
  20. * This method is called before the popup menu becomes visible
  21. */
  22. void popupMenuWillBecomeVisible(PopupMenuEvent e);
  23. /**
  24. * This method is called before the popup menu becomes invisible
  25. * Note that a JPopupMenu can become invisible any time
  26. */
  27. void popupMenuWillBecomeInvisible(PopupMenuEvent e);
  28. /**
  29. * This method is called when the popup menu is canceled
  30. */
  31. void popupMenuCanceled(PopupMenuEvent e);
  32. }