Here is a simple class we wrote for our purpose. :
public class TextLink extends Label{ boolean enabled = true; public TextLink() { super(); init(); } public TextLink(Element element) { super(element); init(); } public TextLink(String text, boolean wordWrap) { super(text, wordWrap); init(); } public TextLink(String text) { super(text); init(); } private void init(){ addStyleName("TextLink"); } @Override public void onBrowserEvent(Event event) { if (enabled) super.onBrowserEvent(event); } private void setEnabled(boolean enabled) { if (this.enabled == enabled) return; if (enabled){ removeStyleName("TextLink-disabled"); addStyleName("TextLink"); }else{ removeStyleName("TextLink"); addStyleName("TextLink-disabled"); } this.enabled = enabled; } } .TextLink{ color: #0000AA; text-decoration:underline; cursor:pointer;cursor:hand; } .TextLink-disabled{ color: #EEEEEE; text-decoration:underline; cursor:pointer;cursor:hand; } On Dec 15, 9:07 am, Smith <smitha.kang...@gmail.com> wrote: > All, > > Is there a way to add some clickable text into a panel? I am aware of > Hyperlink, but I don't need history support. All I need is to show > another panel when a text is clicked on. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---