ChangeListener listener = new ChangeListener()
{
    public void onChange(Widget sender)
    {
    }
};
TextBox t = new TextBox();
t.addChangeListener(listener);
t.setText("blah blah blah");
listener.onChange(t);



2008/8/29 Marcelo Emanoel <[EMAIL PROTECTED]>

>
> Hi guys I was wondering if anyone knows how to fire up an event on a
> widget like TextBox or ListBox for example...
>
> If I do
>
> <code>
>      TextBox t = new TextBox();
>      t.addChangeListener(new ChangeListener(){
>            //implement a listener for changing...
>      });
>
>     t.setText("blah blah blah");
> </code>
>
> the listener won't be called :'(
> Is there a way to fire up the listener throw code?
>
> Thanks in Advance :)
> >
>


-- 
Ian

http://examples.roughian.com

--~--~---------~--~----~------------~-------~--~----~
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