40 *
41 * @author Dave Moore
42 */
43 public interface AncestorListener extends EventListener {
44 /**
45 * Called when the source or one of its ancestors is made visible
46 * either by setVisible(true) being called or by its being
47 * added to the component hierarchy. The method is only called
48 * if the source has actually become visible. For this to be true
49 * all its parents must be visible and it must be in a hierarchy
50 * rooted at a Window
51 *
52 * @param event an {@code AncestorEvent} signifying a change in an
53 * ancestor-component's display-status
54 */
55 public void ancestorAdded(AncestorEvent event);
56
57 /**
58 * Called when the source or one of its ancestors is made invisible
59 * either by setVisible(false) being called or by its being
60 * remove from the component hierarchy. The method is only called
61 * if the source has actually become invisible. For this to be true
62 * at least one of its parents must by invisible or it is not in
63 * a hierarchy rooted at a Window
64 *
65 * @param event an {@code AncestorEvent} signifying a change in an
66 * ancestor-component's display-status
67 */
68 public void ancestorRemoved(AncestorEvent event);
69
70 /**
71 * Called when either the source or one of its ancestors is moved.
72 *
73 * @param event an {@code AncestorEvent} signifying a change in an
74 * ancestor-component's display-status
75 */
76 public void ancestorMoved(AncestorEvent event);
77
78 }
|
40 *
41 * @author Dave Moore
42 */
43 public interface AncestorListener extends EventListener {
44 /**
45 * Called when the source or one of its ancestors is made visible
46 * either by setVisible(true) being called or by its being
47 * added to the component hierarchy. The method is only called
48 * if the source has actually become visible. For this to be true
49 * all its parents must be visible and it must be in a hierarchy
50 * rooted at a Window
51 *
52 * @param event an {@code AncestorEvent} signifying a change in an
53 * ancestor-component's display-status
54 */
55 public void ancestorAdded(AncestorEvent event);
56
57 /**
58 * Called when the source or one of its ancestors is made invisible
59 * either by setVisible(false) being called or by its being
60 * removed from the component hierarchy. The method is only called
61 * if the source has actually become invisible. For this to be true
62 * at least one of its parents must by invisible or it is not in
63 * a hierarchy rooted at a Window
64 *
65 * @param event an {@code AncestorEvent} signifying a change in an
66 * ancestor-component's display-status
67 */
68 public void ancestorRemoved(AncestorEvent event);
69
70 /**
71 * Called when either the source or one of its ancestors is moved.
72 *
73 * @param event an {@code AncestorEvent} signifying a change in an
74 * ancestor-component's display-status
75 */
76 public void ancestorMoved(AncestorEvent event);
77
78 }
|