1. /*
  2. * @(#)InternalFrameListener.java 1.9 00/02/02
  3. *
  4. * Copyright 1998-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. * The listener interface for receiving internal frame events.
  14. * This class is functionally equivalent to the WindowListener class
  15. * in the AWT.
  16. * <p>
  17. * See <a href="http://java.sun.com/docs/books/tutorial/uiswing/events/internalframelistener.html">How to Write an Internal Frame Listener</a>
  18. * in <em>The Java Tutorial</em> and
  19. * <a href="http://www.awl.com/cp/javaseries/jcl1_2.html">The Java Class Libraries (update)</a>
  20. * for further documentation.
  21. *
  22. * @see java.awt.event.WindowListener
  23. *
  24. * @version 1.9 02/02/00
  25. * @author Thomas Ball
  26. */
  27. public interface InternalFrameListener extends EventListener {
  28. /**
  29. * Invoked when a internal frame has been opened.
  30. * @see javax.swing.JInternalFrame#show
  31. */
  32. public void internalFrameOpened(InternalFrameEvent e);
  33. /**
  34. * Invoked when an internal frame is in the process of being closed.
  35. * The close operation can be overridden at this point.
  36. * @see javax.swing.JInternalFrame#setDefaultCloseOperation
  37. */
  38. public void internalFrameClosing(InternalFrameEvent e);
  39. /**
  40. * Invoked when an internal frame has been closed.
  41. * @see javax.swing.JInternalFrame#setClosed
  42. */
  43. public void internalFrameClosed(InternalFrameEvent e);
  44. /**
  45. * Invoked when an internal frame is iconified.
  46. * @see javax.swing.JInternalFrame#setIcon
  47. */
  48. public void internalFrameIconified(InternalFrameEvent e);
  49. /**
  50. * Invoked when an internal frame is de-iconified.
  51. * @see javax.swing.JInternalFrame#setIcon
  52. */
  53. public void internalFrameDeiconified(InternalFrameEvent e);
  54. /**
  55. * Invoked when an internal frame is activated.
  56. * @see javax.swing.JInternalFrame#setSelected
  57. */
  58. public void internalFrameActivated(InternalFrameEvent e);
  59. /**
  60. * Invoked when an internal frame is de-activated.
  61. * @see javax.swing.JInternalFrame#setSelected
  62. */
  63. public void internalFrameDeactivated(InternalFrameEvent e);
  64. }