Friday, January 2, 2015

one ChangeHandler for multiple TextBoxes?

Hello,

I have a FlexTable with an undefined number of rows.
(The user may add new rows.)

Each row has a TextBox, and I would like to catch the ChangeEvent for it.
So I add one ChangeHandler to each of the TextBoxes.
(It's the same handler for each of them.)

Within the handler, can I determine the source widget, i. e. the TextBox instance for which the event is fired?
Or can I encode a custom value somewhere within the widget and retrieve it in the handler?

Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment