01: package org.wings.event;
02:
03: import java.util.EventListener;
04:
05: /**
06: * This Listener is called when a component's parent frame reference is
07: * updated i.e. via {@link org.wings.SComponent#setParentFrame(org.wings.SFrame)}
08: * or {@link org.wings.SComponent#setParent(org.wings.SContainer)}
09: *
10: * It is used for lazy registering things like headers or listeners at the application frame as typically
11: * {@link org.wings.SComponent#getParentFrame()} will return <code>null</code> during construction time.
12:
13: * @author ole
14: */
15: public interface SParentFrameListener extends EventListener {
16: /**
17: * Called, whenever a parentFrame reference is added to the container.
18: * This i.e. happens on <code>frame.add(component)</code>.
19: */
20: void parentFrameAdded(SParentFrameEvent e);
21:
22: /**
23: * Called, whenever a parentFrame reference is removed from the container.
24: */
25: void parentFrameRemoved(SParentFrameEvent e);
26: }
|