1 | 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. |
2 | Source Bean |
3 | Listener |
4 | Sink Bean |
5 | 2) Notification of need to communicate |
6 | 1) |
7 | Source Bean |
8 | Sink Bean |
9 | 3) Communicate |