Re: Sending redraw-events to other layers

From: Donald Dietrick <dietrick@bbn.com>
Date: Thu Oct 25 2001 - 10:35:04 EDT

Hi Rüdiger,

On Thursday, October 25, 2001, at 04:31 AM, Gubler, Rüdiger wrote:

>
> Hello,
>
> i want to send a event to other layers in case of a
> modification in the database.
>
> Which event on which type must i send.

It totally depends on what the layers are able to receive, and even that
is on a layer by layer basis. Are these layers that you have written,
or standard OpenMap layers?

In general, you can create your own event object, and modify the layers
that need to act on those events, and have them implement some interface
that specifies that they are able to receive those events. Then, add
those layers to the BeanContext.

On the other side, have your database monitoring object use the
BeanContext to look for objects that implement your new interface. Have
that database monitoring object add the layers as listeners.

Cheers,

Don

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Oct 25 10:34:06 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT