Hi Adrian,
The REMOVE event doesn't get fired anymore, it turned out to be
redundant when the other two events were fired. The ALL event notifies
everyone which layers are available. The REPLACE event notifies
everyone which layers should be on the MapBean.
These events were names to mean something to the MapBean. When other
components started listening for them, we just kept the names as they
were.
- Don
On Nov 27, 2003, at 6:26 PM, Adrian Lumsden wrote:
>
> Hello,
>
> I have a LayersListener in a custom mouse mode. It manages several
> layers of the same type keeping track of which instance of that layer
> class is the chosen one. It needs to know if that layer gets deleted.
>
> When I delete the selected layer with the LayersPanel and dump the
> layer event(s) that arrive I get two events:
>
> 12:05:03.703: @@@CaptureMouseMode.niEventHandler.166:
> nie=LayersChangedEvent
> 12:05:03.703: @@@CaptureMouseMode.niEventHandler.174: layers.length=7,
> getType()=403
> 12:05:03.703: @@@CaptureMouseMode.niEventHandler.166:
> nie=LayersChangedEvent
> 12:05:03.703: @@@CaptureMouseMode.niEventHandler.174: layers.length=6,
> getType()=402
>
> The first one has type LayerEvent.ALL with seven layers in total.
>
> The second one has type LayerEvent.REPLACE with six layers.
>
> Que passa? Why don't I get a REMOVE event type and what's the
> significance of ALL? The Javadocs say:
>
> ALL
> public static final transient int ALL
>
> Any suggestions? I'm using 4.5.4.
>
>
> with regards,
>
> Adrian
>
> _____________________________________________
>
> Adrian Lumsden
> Product Specialist
> Scientific Software and Systems Limited
>
> Tel: +64 4 917-6680 (direct)
> +64 4 917-6670 (reception)
> Fax: +64 4 917-6671
> E-mail: Adrian.Lumsden@spamblackhole.sss.co.nz
>
> Visit us on the Web at: http://www.sss.co.nz
> _____________________________________________
>
> This e-mail passed SSS's content security scan.
> It is covered by the confidentiality clauses at
> http://www.sss.co.nz/content_and_confidentiality
-- [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 Mon Dec 1 08:15:08 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT