I haven´t been working with GWT 1.5 myself, only 1.6. But it sounds like you should take a look at the HandlerManager class. Obviously it managers handler (previously listeners), and it also has methods like
manager.addHandler(type, handler) manager.fireEvent(event) --Dalla http://date-time.appspot.com/ On 11 Juli, 12:17, "marco.lami" <[email protected]> wrote: > Hy all, > on my gwt app i've created a custom hyperlink with a method to fire > click event programmatically. > What i've done is to use ClickListenerCollection and its fireClick() > method. > > class MyHyperlink extends Hyperlink{ > private ClickListenerCollection clc = new ClickListenerCollection(); > ... > ... > > // Override addClickListener > public void addClicklistener(ClickListener listener){ > addClickListener(listener); > clc.add(listener); > > } > > // Programmatic event > public void doClick(){ > clc.fireClick(this); > > } > } > > Now i'm trying to upgrade my app to gwt 1.6 and > ClickListenerCollection is deprecated. > How can i obtain the same behaviour? > > Many thanks > Marco --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
