14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.awt.event; 27 28 import java.util.EventListener; 29 30 /** 31 * The listener interface for receiving window events. 32 * The class that is interested in processing a window event 33 * either implements this interface (and all the methods it 34 * contains) or extends the abstract <code>WindowAdapter</code> class 35 * (overriding only the methods of interest). 36 * The listener object created from that class is then registered with a 37 * Window using the window's <code>addWindowListener</code> 38 * method. When the window's status changes by virtue of being opened, 39 * closed, activated or deactivated, iconified or deiconified, 40 * the relevant method in the listener object is invoked, and the 41 * <code>WindowEvent</code> is passed to it. 42 * 43 * @author Carl Quinn 44 * 45 * @see WindowAdapter 46 * @see WindowEvent 47 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html">Tutorial: How to Write Window Listeners</a> 48 * 49 * @since 1.1 50 */ 51 public interface WindowListener extends EventListener { 52 /** 53 * Invoked the first time a window is made visible. 54 * @param e the event to be processed 55 */ 56 public void windowOpened(WindowEvent e); 57 58 /** 59 * Invoked when the user attempts to close the window 60 * from the window's system menu. 61 * @param e the event to be processed | 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.awt.event; 27 28 import java.util.EventListener; 29 30 /** 31 * The listener interface for receiving window events. 32 * The class that is interested in processing a window event 33 * either implements this interface (and all the methods it 34 * contains) or extends the abstract {@code WindowAdapter} class 35 * (overriding only the methods of interest). 36 * The listener object created from that class is then registered with a 37 * Window using the window's {@code addWindowListener} 38 * method. When the window's status changes by virtue of being opened, 39 * closed, activated or deactivated, iconified or deiconified, 40 * the relevant method in the listener object is invoked, and the 41 * {@code WindowEvent} is passed to it. 42 * 43 * @author Carl Quinn 44 * 45 * @see WindowAdapter 46 * @see WindowEvent 47 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html">Tutorial: How to Write Window Listeners</a> 48 * 49 * @since 1.1 50 */ 51 public interface WindowListener extends EventListener { 52 /** 53 * Invoked the first time a window is made visible. 54 * @param e the event to be processed 55 */ 56 public void windowOpened(WindowEvent e); 57 58 /** 59 * Invoked when the user attempts to close the window 60 * from the window's system menu. 61 * @param e the event to be processed |