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

Images, Flash, video, audio, and other web content

In the previous section, we saw how to add an icon to a component through a ClassResource instance. A Resource represents web content such as images, flash files, audio files, video, or even an external web page.

Note

Vaadin has two flavors of resources: Generic resources (implement Resource) and connector resources (implement ConnectorResource). A connector resource is specialized in the sense that it will connect to a resource through the Vaadin Servlet while a generic resource will bypass the Servlet.

We can choose from five Resource implementations:

Class

Description

Example

ExternalResource

Fetches a resource from a location specified by URL. The resource is fetched directly by the client. ...

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