I thought so to until I found that this approach is not cross platform. See
http://code.google.com/p/google-web-toolkit/issues/detail?id=1333 and http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/2f66508a088f7643/ce928b035afc1945#ce928b035afc1945 Clearly Image needs methods for getting/setting the alternate text. It's such a basic HTML and ARIA thing to do that I can't understand why it hasn't been in release since Day 1. On Mar 7, 11:06 am, Gal Dolber <[email protected]> wrote: > Image i = new Image(...); > i.getElement().setAttribute("alt", "Your alternate text"); > String yourAlternateText = i.getElement().getAttribute("alt"); > > 2010/3/6 PKolenic <[email protected]> > > > I found it a bit of a hassle also not having those methods. However I > > do much of my work with UiBinding, > > so I just used an <img> tag and on the code side an ImageElement and > > was able to set the alt text. > > > On Mar 5, 1:54 pm, Thad <[email protected]> wrote: > > > These methods were announced with v.2.0.1 (http://groups.google.com/ > > > group/google-web-toolkit/browse_thread/thread/e292666b63d182b3/ > > > e0c63a5767b81b3c). > > > However as of 2.0.3, they are still not there. > > > > I see they are in the trunk, but I'd rather deal with a formal > > > release. When can I expect to see them? 2.0.4? 2.1? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
