You said you wanted to call the listener. That code calls the listener.
If you want a different answer, try asking a different question.
Ian
2008/8/29 Marcelo Emanoel <[EMAIL PROTECTED]>
>
> I already know of the changeListeners and so on... but that's wasn't
> what I'm looking for.... :(
>
> But I've manage another way to do what I need :)
>
> Thanks Anyway
>
> On 29 ago, 08:53, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> > 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
> >
>
--
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
-~----------~----~----~----~------~----~------~--~---