Book Image

Vaadin 7 Cookbook

Book Image

Vaadin 7 Cookbook

Overview of this book

Table of Contents (19 chapters)
Vaadin 7 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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.