Ah, OK. If you are talking about intra-application message passing, Pivot 
actually has a built-in API for that. See the subscribe(), unsubscribe(), and 
sendMessage() methods of ApplicationContext (in Pivot 2.0, these live in 
org.apache.pivot.util.MessageBus).

On Jul 16, 2010, at 6:34 PM, Clint Gilbert wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I don't know your exact scenario, but I've had good luck in my pivot app
> using something like EventBus - basically an publish/subscribe system
> for events - for invoking code on sibling components.  There's even a
> Pivot-centric tutorial with lots and lots of examples:
> 
> http://www.eventbus.org/confluence/pages/viewpage.action?pageId=819222
> 
> Michael Allman wrote:
>> Is there a means in Pivot for a component to send a generic message to its 
>> ancestors (aside from manually walking the hierarchy and calling methods 
>> on each parent in turn)?  The prototypical example I'm thinking of here is 
>> event bubbling.
>> 
>> Cheers,
>> 
>> Michael
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkxA3mQACgkQ5IyIbnMUeTsXCACdHPl9JZo2En/W/ScMm/F934mQ
> RYAAmQElWmB/6Agk4zIzqNEz4goqhB99
> =3v/w
> -----END PGP SIGNATURE-----

Reply via email to