-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oh cool, I didn't know that API existed.

Greg Brown wrote:
> 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:
> 
> 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

iEYEARECAAYFAkxA5eUACgkQ5IyIbnMUeTsRcQCfdYvcg+HME3YEQ1pp5RrlyCfi
pywAnifiIubrF5TXWrUtn9vq+vWSeOLW
=ep+f
-----END PGP SIGNATURE-----

Reply via email to