当前位置: 动力学知识库 > 问答 > 编程问答 >

Simple hyperlink in GWT?

问题描述:

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?

网友答案:

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

网友答案:

You're looking for Anchor.

分享给朋友:
您可能感兴趣的文章:
随机阅读: