1. /*
  2. * @(#)WindowStateListener.java 1.4 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.event;
  8. import java.util.EventListener;
  9. /**
  10. * The listener interface for receiving window state events.
  11. * <p>
  12. * The class that is interested in processing a window state event
  13. * either implements this interface (and all the methods it contains)
  14. * or extends the abstract <code>WindowAdapter</code> class
  15. * (overriding only the methods of interest).
  16. * <p>
  17. * The listener object created from that class is then registered with
  18. * a window using the <code>Window</code>'s
  19. * <code>addWindowStateListener</code> method. When the window's
  20. * state changes by virtue of being iconified, maximized etc., the
  21. * <code>windowStateChanged</code> method in the listener object is
  22. * invoked, and the <code>WindowEvent</code> is passed to it.
  23. *
  24. * @see java.awt.event.WindowAdapter
  25. * @see java.awt.event.WindowEvent
  26. *
  27. * @since 1.4
  28. */
  29. public interface WindowStateListener extends EventListener {
  30. /**
  31. * Invoked when window state is changed.
  32. */
  33. public void windowStateChanged(WindowEvent e);
  34. }