O'Reilly logo

Vaadin 7 Cookbook by Ondrej Kvasnovsky, Jaroslav Holan

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

In this chapter, we will cover:

  • Responding immediately to an event in TextArea
  • Changing Label to TextField by double-clicking
  • Lazy loading in a table
  • Reordering columns and rows in a table
  • Customizing shortcuts
  • Adding click listener to the Link component
  • Creating a custom context menu
  • Updating a message in the menu bar using the ICEPush add-on
  • Updating the noticeboard using the Refresher add-on

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

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