Using Java's Delegation Event Model

Bean event communication depends on Java's delegation event model. The delegation event model (introduced with Java 1.1) supplants the old Java 1.0 event model. Three concepts, each associated with an abstract Java class, form the basis of the model:

  • The event source

  • The event object

  • The event listener

Note

Java's delegation event model gets its name from the fact that event sources are delegated out (assigned) to specific event listeners. The result is an efficient event communication system.

Event Sources

Java objects that "fire" events and create event objects are known as event sources. For instance, each graphic user interface component in Java's Abstract Windowing Toolkit is an event source.

Event sources ...

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.