Basic HTML version of Foils prepared May 19 99

Foil 9 JavaBean Communication and Event Model

From Javabeans Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Geoffrey Fox, Nancy McCracken, Wojtek Furmanski


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



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999