On Mon, 14 Oct 2002, at 19:06 [-0500], Daniel Krieg ([EMAIL PROTECTED]) wrote:

> >You may want to have a look at projects like Eclipse or Netbeans. From what
> I
> >have heard both have "service kernels" to host services. These "Services"
> >usually do UI specific things from Undo/State management to connection to
> >underlying datasources.
> To add to the list, checkout jEdit.  It can work as a base as well.
>
> >
> >The way I used to do things (and I say used to as I have since stopped
> doing
> >most GUI work) is something like the following.
> >
> >Define a hierarchial EventBusService. When an even occurs you place it on
> >EventBus, if not handled (or not removed during handling) it will gradually
> >percolate up the EventBus. Usually I had an "Application" EventBus as a
> >parent of each "Form" EventBus.
> >
> >Handing off each EventBus are various actions/handlers that consume events,
> >use services to perform some behaviour and then update the UI (think of
> them
> >in same way as Struts actions and you will get what I mean).
> InfoBus is a standard EventBus system you may want to consider as well.
> jEdit comes with their own custom EventBus (thus the aforementioned
> recommendation)

Thanks for the pointers!

I have been digging around in jEdit, in case y'all are interested, their
'EditBus' is a broadcast scheme.  Any message (a message is a class
extending the EBMessage abstract class) placed on the bus is received by
all bus listeners.  It's a lot like having one standard Listener and
Event, but you can drop various objects into the event to pass around
different information.

The InfoBus stuff is intriguing.  I should probably look at it more
closely but given that all external links from the Sun site to InfoBus
have evaporated, the InfoBus specification recommends against using it
for complex data, and (here's the real reason) I have absolutely no clue
what a JavaBean is for, well, it didn't really make a lot of sense to me
;)

        Gary


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to