zixzigma
unread,Nov 7, 2010, 1:46:30 AM11/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
in MVP samples: Contact 1 and Contact 2,
eventBus is used for communicating application level events.
with eventBus, one part of application informs other interested parts
of certain events, so they can take appropriate action. code:
"public class AddContactEvent extends GwtEvent<AddContactEventHandler>
"
for example: when an item is selected in left panel, an event can be
fired with the ID of selected item, so the center panel can update
with relavant info.
we had to write custom Event classes extending GwtEvent, and firing
events.
however, in Roo generated GWT MVP, Expenses App, i don't see events
being used in manner i described above.
the eventBus mainly is in charge of Navigation/Activity/Place/
History ... that i can see,
but custom events, to facilitate communication between different part
of the app, i dont see.
there are packages for "ui", "activity", but not for "event".
can someone please help ?