Simple hyperlink in GWT?

风流意气都作罢 提交于 2020-01-03 12:33:43

问题


This should be simple, but somehow I can't find a way to create simple hyperlink in GWT. Basically, I want to load another page when users clicks on something.

Hyperlink seems to point to internal GWT application state only. I guess I could put the link in HTML code itself, but how do I create it in Java?


回答1:


Anchor
this.add(new Anchor("www.stackoverflow.com"));




回答2:


You're looking for Anchor.



来源:https://stackoverflow.com/questions/1767572/simple-hyperlink-in-gwt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!