Bean Events

Internally, beans use the Java event model just like any Java application, but they also use events to communicate with other beans. It's communication through events that gives you the ability to wire beans into applications. You have already seen two occasions for beans to fire events: when a property value changes and when an attempt is made to change a property to an invalid value. There are many other standard events that a bean can fire, and you can define your own event objects. The Java language provides an event model to use when creating components and applications known as the delegation event model.

Delegation Event Model

Java's delegation event model provides a simple, logical mechanism for implementing communication ...

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.