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 package javax.swing.event;
26
27 import java.awt.event.*;
28 import java.awt.*;
29 import javax.swing.*;
30
31 /**
32 * An event reported to a child component that originated from an
33 * ancestor in the component hierarchy.
34 * <p>
35 * <strong>Warning:</strong>
36 * Serialized objects of this class will not be compatible with
37 * future Swing releases. The current serialization support is
38 * appropriate for short term storage or RMI between applications running
39 * the same version of Swing. As of 1.4, support for long term storage
40 * of all JavaBeans™
41 * has been added to the <code>java.beans</code> package.
42 * Please see {@link java.beans.XMLEncoder}.
43 *
44 * @author Dave Moore
45 */
46 @SuppressWarnings("serial")
47 public class AncestorEvent extends AWTEvent {
48 /**
49 * An ancestor-component was added to the hierarchy of
50 * visible objects (made visible), and is currently being displayed.
51 */
52 public static final int ANCESTOR_ADDED = 1;
53 /**
54 * An ancestor-component was removed from the hierarchy
55 * of visible objects (hidden) and is no longer being displayed.
56 */
57 public static final int ANCESTOR_REMOVED = 2;
58 /** An ancestor-component changed its position on the screen. */
59 public static final int ANCESTOR_MOVED = 3;
60
|
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 package javax.swing.event;
26
27 import java.awt.event.*;
28 import java.awt.*;
29 import javax.swing.*;
30
31 /**
32 * An event reported to a child component that originated from an
33 * ancestor in the component hierarchy.
34 * <p>
35 * <strong>Warning:</strong>
36 * Serialized objects of this class will not be compatible with
37 * future Swing releases. The current serialization support is
38 * appropriate for short term storage or RMI between applications running
39 * the same version of Swing. As of 1.4, support for long term storage
40 * of all JavaBeans
41 * has been added to the <code>java.beans</code> package.
42 * Please see {@link java.beans.XMLEncoder}.
43 *
44 * @author Dave Moore
45 */
46 @SuppressWarnings("serial")
47 public class AncestorEvent extends AWTEvent {
48 /**
49 * An ancestor-component was added to the hierarchy of
50 * visible objects (made visible), and is currently being displayed.
51 */
52 public static final int ANCESTOR_ADDED = 1;
53 /**
54 * An ancestor-component was removed from the hierarchy
55 * of visible objects (hidden) and is no longer being displayed.
56 */
57 public static final int ANCESTOR_REMOVED = 2;
58 /** An ancestor-component changed its position on the screen. */
59 public static final int ANCESTOR_MOVED = 3;
60
|