GWT EventHandler Removal

GWT EventHandler Removal

In the application I am working on, I’m leveraging the SimpleEventBus to register my EventHandler while the page is active. Once the page went inactive due to being added to a history widget, or was removed from the DOM, I wanted to deregister the EventHandler so that it wasn’t active and responding to fired events unnecessarily. The SimpleEventBus featured an addHandler method that allowed me to register the EventHandler, but it does not have a removeHandler method that allows for the removal of the EventHandler that was registered.

[ Read More ]