If you are adding items to that list; it will send events out. You will need to 
do a bit of digging to find the correct list to listen to and what events to 
expect out the other side.  


--  
Jody Garnett


On Tuesday, 28 February 2012 at 3:08 PM, Nazareno Chan wrote:

>  
> Yep, I’m testing if I’ll be able to check the events by programmatically 
> adding items into the LegendList. Is it expected that I’m not seeing events 
> at this point?
>  
>  
>   
>  
>  
> Thanks alot!
>  
>  
>   
>  
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Jody Garnett
> Sent: Tuesday, 28 February 2012 3:59 PM
> To: User-friendly Desktop Internet GIS
> Subject: Re: [udig-devel] Listening to changes to the new LegendItems list
>  
>  
>  
>  
>   
>  
>  
> Naz can I confirm you are adding items to the legend list yet? I am still not 
> sure if you should expect to see any events yet ...  
>  
>  
>  
>   
>  
>  
>  
> --  
>  
>  
>  
> Jody Garnett
>  
>  
>  
>   
>  
>  
>  
> On Tuesday, 28 February 2012 at 2:57 PM, Nazareno Chan wrote:
> >  
> > Nope, not at all Jody. J
> >  
> >  
> >   
> >  
> >  
> > I did try to listen thru the deep adapter but I’m not getting the changes 
> > on the LegendItems list. So I tried to check how the LayersList  does it, 
> > and it seems to be doing this:
> >  
> >  
> > adding the same adapter to the list itself (list is of type LayersList2)
> >  
> >  
> > adding it to the layers in the list  
> >  
> >  
> > adding/removing it to newly added/removed layers to/from the list (thru 
> > ‘Interceptors’?)
> >  
> >  
> >   
> >  
> >  
> > Does this mean I should also follow the above implementation?
> >  
> >  
> >   
> >  
> >  
> > Thanks!
> >  
> >  
> > Naz Chan
> >  
> >  
> >   
> >  
> >  
> > From: [email protected] 
> > (mailto:[email protected]) 
> > [mailto:[email protected]] On Behalf Of Jody Garnett
> > Sent: Tuesday, 28 February 2012 3:38 PM
> > To: User-friendly Desktop Internet GIS
> > Subject: Re: [udig-devel] Listening to changes to the new LegendItems list
> >  
> >  
> >  
> >  
> >   
> >  
> >  
> > I think you are saying the same thing:
> >  
> >  
> >  
> > a) I think you can just listen to the EMF notifications  
> >  
> >  
> >  
> > b) a deep adaptor is how I think it does that (your listener is called an 
> > "adaptor" which is added to the Map and gets all notifications; you then 
> > check the notifications and only respond to the ones that relate to the 
> > Legend List)
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > I hope I have not made things worse with the above answer; I don't have the 
> > code in front of me :(
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > --  
> >  
> >  
> >  
> > Jody Garnett
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > On Tuesday, 28 February 2012 at 1:25 PM, Nazareno Chan wrote:
> > >  
> > > Hi Guys,
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > With regards to the new LegendView change: 
> > > http://udig.refractions.net/confluence/display/UDIG/Legend+View
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > Im trying to get to listen to changes on the LegendItems list 
> > > (map.getLegend()), like how a map’s deep adapter or map composition 
> > > listener does.  
> > >  
> > >  
> > >  
> > > Should these listeners’ setup be customized and added to the map?  
> > >  
> > >  
> > > Or should these be readily available considering that they are EMF 
> > > objects?
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > J
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > Thanks,
> > >  
> > >  
> > >  
> > > Naz Chan
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > >   ________________________________   
> > >  
> > >  
> > >  
> > > The contents of this email are confidential and may be subject to legal 
> > > or professional privilege and copyright. No representation is made that 
> > > this email is free of viruses or other defects. If you have received this 
> > > communication in error, you may not copy or distribute any part of it or 
> > > otherwise disclose its contents to anyone. Please advise the sender of 
> > > your incorrect receipt of this correspondence.
> > >  
> > >  
> > >  
> > >  
> > > _______________________________________________
> > >  
> > >  
> > >  
> > > User-friendly Desktop Internet GIS (uDig)
> > >  
> > >  
> > >  
> > > http://udig.refractions.net
> > >  
> > >  
> > >  
> > > http://lists.refractions.net/mailman/listinfo/udig-devel
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> >  
> >  
> >   
> >  
> >  
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > The contents of this email are confidential and may be subject to legal or 
> > professional privilege and copyright. No representation is made that this 
> > email is free of viruses or other defects. If you have received this 
> > communication in error, you may not copy or distribute any part of it or 
> > otherwise disclose its contents to anyone. Please advise the sender of your 
> > incorrect receipt of this correspondence.
> >  
> >  
> >  
> > _______________________________________________
> >  
> >  
> >  
> > User-friendly Desktop Internet GIS (uDig)
> >  
> >  
> >  
> > http://udig.refractions.net
> >  
> >  
> >  
> > http://lists.refractions.net/mailman/listinfo/udig-devel
> >  
> >  
> >  
> >  
> >  
>  
>  
>   
>  
>  
>  
>  
>  
> The contents of this email are confidential and may be subject to legal or 
> professional privilege and copyright. No representation is made that this 
> email is free of viruses or other defects. If you have received this 
> communication in error, you may not copy or distribute any part of it or 
> otherwise disclose its contents to anyone. Please advise the sender of your 
> incorrect receipt of this correspondence.
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>  
>  


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to