Hi all, I could not understand the importance of GWT event bus. I have gone through the tutorial
here. The tutorial explains how to build a Contacts application. The tutorial shows how to use GWT event bus. I have downloaded the zip file available in the same page and ran the application.
Later I created another sample application and started developing it without the use of GWT event bus.
Now I am unable to understand what is the use or importance of GWT event bus. I opened the tutorial application and looked where the author is using the event bus. I could find its usage in AppController.java where he is simply switching between views using History class. I have used History to switch between views in the presenter classes. Later I looked at the tutorial and it says "The Event Bus is a mechanism for a) passing events and b) registering to be notified of some subset of these events.". I could not understand this line.
Can anyone please explain me why should we use event bus, and can anyone please give an example of its usage.
Thank you all in advance. Good day.