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