You can inherit Label and sink ONCLICK event by add below line in
constructor of inherited class.

void InheritLabelConstructor(String text) {
    super(text);
    sinkEvents(Event.ONCLICK);
}

void onBrowserEvent(Event event) {
    super.onBrowserEvent(event);
    if (event.getTypeInt() == Event.ONCLICK) {
         // do something
    }
}

Best
Kevin
On Mon, Dec 15, 2008 at 11:07 PM, Smith <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to