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 |
---|---|---|
|
Fetches a resource from a location specified by URL. The resource is fetched directly by the client. ... |
Get Vaadin 7 UI Design By Example Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.