wood burning stoves 2.0*
The moose likes GWT and the fly likes How do you add an ALT attribute to a GWT Hyperlink? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "How do you add an ALT attribute to a GWT Hyperlink?" Watch "How do you add an ALT attribute to a GWT Hyperlink?" New topic
Author

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

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

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();
panel.setFrame(true);

Image image = new Image("images/silk/flag_green_s.png");
image.addStyleName("flag-green");
image.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {

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

panel.add(image);


-Cameron McKenzie
 
 
subject: How do you add an ALT attribute to a GWT Hyperlink?