O'Reilly logo

Learning Vaadin by Nicolas Frankel

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

Chapter 5. Event listener model

In this chapter, we will see how Vaadin widgets communicate with each other.

Widgets have to work together in order to achieve a common goal. Like ants, they cannot do so without a means to pass information. In Vaadin and other software, this is done through events and listeners.

In the first section of this chapter, we will explain this whole event and listener thing. We will have a look at the famous observer pattern and the way it is used in Java EE applications.

Then, we will get a grasp on how it is implemented in Vaadin and the different ways one can wire widgets together so one can be the subject and the other observers. A discussion will follow in order to determine which components category is the more suitable ...

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