Hi guys,
with GWT 1.6 there is the new handler-based approach for managing
events.
When I register, let's say, a button handler
HandlerRegistration buttonRegistration = button.addClickHandler(new
ClickHandler() {...do something...});
I get an instance of HandlerRegistration. Then, if I want to remove
the button's handler, let's say for a while just to make the button
functionality temporarily unavailable, I just call
buttonRegistration.removeHandler();
But now the point is where to store the buttonHandler instance. With
listeners it was easy, you just called button.removeClickListener()
because the button kept the listener.
If I have a large project with many buttons what is the best approach
for storing and handling the HandlerRegistration instances of my
buttons and other widgets? Is there any recommended design pattern?
This can make a real mess in my application if I do not find some
general solution of this.
Thanks.
Roman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---