CSS and style utilities for both server and client side.

CSS and style utilities for both server and client side.

On the server-side:

Use the RenderInfo.get method to get accurate runtime style information for any component currently attached to the application, such as the exact pixel size and position or color and font-size.

On the client-side (GWT):

Use ComputedStyle to get accurate runtime CSS property values from DOM elements, which are normalized for all supported browsers, e.g. you get all dimension values as pixels even if they would be defined as percentages in the stylesheet.

Use CSSRule to get actual CSS property values defined in the stylesheets, i.e. the exact values the author has written in the stylesheet.

You can also create new style rules dynamically using the CSSRule class. This allows you to easy specify some CSS styles for your custom widgets, but also enables the widget users to override any of those values using simple CSS, since your styles are not defined as hard-to-override inline styles.


Link to this version
StableReleased 21 October 2011Apache License 2.0
Framework Support
Vaadin 6.3+
Browser Compatibility
Install with
Release notes - Version 0.3

Added the RenderInfo class making it possible to query runtime style properties for any component attached to the application.