JavaBeans use the same event model as the AWT to communicate between Beans. The beans communication requires that Sources of information or events be linked to Sinks, who want to use information or respond to events. (Sinks are synonymous with observers.) In Java AWT, a listener class establishes this linkage with an event handler method. |
Source Bean |
Listener |
Sink Bean |
2) Notification of need to communicate |
1) |
Source Bean |
Sink Bean |
3) Communicate |