Tuesday, April 12, 2011

Which method of HandlerManager is ClickListenerCollection.fireClick(widget w) similar with ?

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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate