Jun
15
Google Web Toolkit (GWT) Creating a hyperlink for a button
Filed Under Developers, Google Web Toolkit | 2 Comments
Should be simpler, but GWT requires you to do an onclick event for the buttons. Then you can use the Javascript Window location to go to the new URL.
Toolbar toolbar = new Toolbar();
ToolbarButton button = new ToolbarButton("Click to New URL", new ButtonListenerAdapter()
{
public void onClick(Button button, EventObject e)
{
Window.Location.replace("http://www.google.com");
}
});
toolbar.addButton(button);
Now when the button is clicked, it will act like a normal <a href link.
Previous Post: Installing haproxy load balancing for http and https
Next Post: Recruiting















Nice Plugin !!
thank you!!!! you saved me!!!