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

Summary

In this chapter, we learned the two ways to create custom components to extend our palette of existing widgets.

The first section told us about component composition. Composition is all about inheriting from CustomComponent. This can be done manually or graphically through the Visual Editor available in the Eclipse Vaadin plugin.

In the second section, we saw that the way Vaadin wraps GWT widgets is also available to us as developers. We just have to provide:

  • A client class that inherits from the GWT widget and has to implement Paintable. It will be compiled into JavaScript and managed by GWT.
  • A server class that binds the client class through an annotation. It will be this one we will use in our code.

Communication between the two components ...

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