Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

How do you add an ALT attribute to a GWT Hyperlink?

author and cow tipper
Posts: 5000
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I was playing around with Google Web Toolkit hyperlinks, and I couldn't find a way to add an alt attribute to a Hyperlink. I just didn't seen anything there in the spec.

JavaDoc for Google Web Toolkit (GWT) Hyperlink Widget

For now, I've added a GWT-EXT ToolTip to the HyperLink, and it pretty much servers the same purpose. I was just wondering if this was the standard way of setting the alt attribute on a Google Web Toolkit Hyperlink, or if there was an easier way.

Panel panel = new Panel();

Image image = new Image("images/silk/flag_green_s.png");
image.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {

ToolTip tip1 = new ToolTip();
tip1.setHtml("Question " + i);


-Cameron McKenzie
The moustache of a titan! The ad of a flea:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!