Ooops, sorry my bad :) Somehow I assumed you want to fire events yourself
using fireEvent() inside a composite. If you want to hook up your
"internal" textbox then the easiest solution is to delegate to your
"internal" textbox, e.g.:
public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) {
return textbox.addKeyUpHandler(handler);
}
But in that case the KeyUpEvent.getSource() method will return the
"internal" textbox and not your IndicatorTextField because the TextBox
fired the event. You have to decide if you are fine with it. If you are
not, I think you have to catch the KeyUpEvent from the textbox internally
in your composite and then re-fire it with the corrected source.
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/KEXrZxxhVvEJ.
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.