Friday, January 2, 2015

Re: one ChangeHandler for multiple TextBoxes?

Ok, and can I store a value somewhere in the widget, e. g. an int?

Sure, you can add custom attributes to any widget.getElement() or you store your generated TextBox instances in a list and use list.indexOf(event.getSource()). Well or you just use one handler per TextBox in which case you can pass the row index to the handler instance directly.

-- J.

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