O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required