On 7 nov, 06:46, zixzigma <[email protected]> wrote:
> 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 ?

There's no need for custom events in the scaffold application, they're
replaced with "navigation-oriented" events (PlaceController#goTo,
which fires PlaceChangeRequestEvent and PlaceChangeEvent, handled by
the ActivityManager to switch Activities) and RequestFactory's
EntityProxyChange "data-oriented" events.

-- 
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.

Reply via email to