In gwt 1.5, I used ClickListenerCollection to manage listeners. But in
gwt 1.6 It has been deprecated, so I used HandlerManager.
public void onBrowserEvent(Event event) {
switch (DOM.eventGetType(event)) {
case Event.ONCLICK:
if(clickListeners != null){
clickListeners.fireClick(this);
}
break;
}
}
ClickListenerCollection => use method: fireClick(Widget w)
HandlerManager => which method is similar with fireClick? fireEvent ?
- And How to use
thanks so much
--
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.