KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > event > WindowStateListener


1 /*
2  * @(#)WindowStateListener.java 1.5 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
8 package java.awt.event;
9
10 import java.util.EventListener JavaDoc;
11
12 /**
13  * The listener interface for receiving window state events.
14  * <p>
15  * The class that is interested in processing a window state event
16  * either implements this interface (and all the methods it contains)
17  * or extends the abstract <code>WindowAdapter</code> class
18  * (overriding only the methods of interest).
19  * <p>
20  * The listener object created from that class is then registered with
21  * a window using the <code>Window</code>'s
22  * <code>addWindowStateListener</code> method. When the window's
23  * state changes by virtue of being iconified, maximized etc., the
24  * <code>windowStateChanged</code> method in the listener object is
25  * invoked, and the <code>WindowEvent</code> is passed to it.
26  *
27  * @see java.awt.event.WindowAdapter
28  * @see java.awt.event.WindowEvent
29  *
30  * @since 1.4
31  */

32 public interface WindowStateListener extends EventListener JavaDoc {
33     /**
34      * Invoked when window state is changed.
35      */

36     public void windowStateChanged(WindowEvent JavaDoc e);
37 }
38
Popular Tags