13.9. Accessibility

At this point we’ve looked at how to make the application available in a wide range of languages and dialects; how to present numbers, currencies, and time/dates is a way users will quickly understand; and how to make sure things flow and appear in the right direction.

All of this was focused on users who have no impairment when reading the web page. But that’s not the case for everyone. In the following subsections, we’ll consider what you can do to make your applications more accessible.

13.9.1. Using alternative text for images

Don’t forget to provide alternative text for your images. Use the setAltText method programmatically:

Image myImg = new Image();
myImg.setAltText("description of Image");

Or use the altText ...

Get GWT in Action, Second Edition 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.