Introduction
In this chapter, we will learn how to work with events and listeners in Vaadin. We will use text change listener that will immediately react on users' inputs. Besides simple click listener, Vaadin provides a double-click listener. We will use it in the Label
component. A very practical function is lazy loading in a table. It means that rows are loaded later after the user moves by slider on the side of table. We will also learn how to enable reordering columns and rows in a table. For users who want to control the application using the keyboard, we can add shortcuts for our actions. Actions can be grouped in the context menu. We will show how to use an add-on that adds a context menu to the text area. At the end, we will use two different ways to handle server-push events.