Print this page
Split |
Close |
Expand all |
Collapse all |
--- old/src/share/classes/java/awt/event/WindowListener.java
+++ new/src/share/classes/java/awt/event/WindowListener.java
1 1 /*
2 2 * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 *
5 5 * This code is free software; you can redistribute it and/or modify it
6 6 * under the terms of the GNU General Public License version 2 only, as
7 7 * published by the Free Software Foundation. Oracle designates this
8 8 * particular file as subject to the "Classpath" exception as provided
9 9 * by Oracle in the LICENSE file that accompanied this code.
10 10 *
11 11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 * version 2 for more details (a copy is included in the LICENSE file that
15 15 * accompanied this code).
16 16 *
17 17 * You should have received a copy of the GNU General Public License version
18 18 * 2 along with this work; if not, write to the Free Software Foundation,
19 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 *
21 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 22 * or visit www.oracle.com if you need additional information or have any
23 23 * questions.
24 24 */
25 25
26 26 package java.awt.event;
27 27
28 28 import java.util.EventListener;
29 29
30 30 /**
31 31 * The listener interface for receiving window events.
32 32 * The class that is interested in processing a window event
33 33 * either implements this interface (and all the methods it
34 34 * contains) or extends the abstract <code>WindowAdapter</code> class
35 35 * (overriding only the methods of interest).
36 36 * The listener object created from that class is then registered with a
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
37 37 * Window using the window's <code>addWindowListener</code>
38 38 * method. When the window's status changes by virtue of being opened,
39 39 * closed, activated or deactivated, iconified or deiconified,
40 40 * the relevant method in the listener object is invoked, and the
41 41 * <code>WindowEvent</code> is passed to it.
42 42 *
43 43 * @author Carl Quinn
44 44 *
45 45 * @see WindowAdapter
46 46 * @see WindowEvent
47 - * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html">Tutorial: How to Write Window Listeners</a>
47 + * @see <a href="https://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html">Tutorial: How to Write Window Listeners</a>
48 48 *
49 49 * @since 1.1
50 50 */
51 51 public interface WindowListener extends EventListener {
52 52 /**
53 53 * Invoked the first time a window is made visible.
54 54 */
55 55 public void windowOpened(WindowEvent e);
56 56
57 57 /**
58 58 * Invoked when the user attempts to close the window
59 59 * from the window's system menu.
60 60 */
61 61 public void windowClosing(WindowEvent e);
62 62
63 63 /**
64 64 * Invoked when a window has been closed as the result
65 65 * of calling dispose on the window.
66 66 */
67 67 public void windowClosed(WindowEvent e);
68 68
69 69 /**
70 70 * Invoked when a window is changed from a normal to a
71 71 * minimized state. For many platforms, a minimized window
72 72 * is displayed as the icon specified in the window's
73 73 * iconImage property.
74 74 * @see java.awt.Frame#setIconImage
75 75 */
76 76 public void windowIconified(WindowEvent e);
77 77
78 78 /**
79 79 * Invoked when a window is changed from a minimized
80 80 * to a normal state.
81 81 */
82 82 public void windowDeiconified(WindowEvent e);
83 83
84 84 /**
85 85 * Invoked when the Window is set to be the active Window. Only a Frame or
86 86 * a Dialog can be the active Window. The native windowing system may
87 87 * denote the active Window or its children with special decorations, such
88 88 * as a highlighted title bar. The active Window is always either the
89 89 * focused Window, or the first Frame or Dialog that is an owner of the
90 90 * focused Window.
91 91 */
92 92 public void windowActivated(WindowEvent e);
93 93
94 94 /**
95 95 * Invoked when a Window is no longer the active Window. Only a Frame or a
96 96 * Dialog can be the active Window. The native windowing system may denote
97 97 * the active Window or its children with special decorations, such as a
98 98 * highlighted title bar. The active Window is always either the focused
99 99 * Window, or the first Frame or Dialog that is an owner of the focused
100 100 * Window.
101 101 */
102 102 public void windowDeactivated(WindowEvent e);
103 103 }
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX