O'Reilly logo

Vaadin 7 UI Design By Example Beginner's Guide by Alejandro Duarte

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

Extensions

In Chapter 6, Adding More Components we used the FileDownloader extension to add downloading capabilities to a button:

// create an extension
FileDownloader downloader = new FileDownloader(resource);

// extend a component
downloader.extend(button);

Extensions allow us to add functionality at runtime. We can add multiple extensions to the same component, that's something we cannot do by extending a class (in the object oriented sense, of course).

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