Hello, Do you mean by "selected" just the item that you've clicked on in the list, or a layer where you have toggled its selected flag from off to on ?
If its the first one then I'm afraid you'll need to hack the MapLayerTable class to do it. If it's the second one, your application can listen for events from the layers... Except that after typing that I just looked at the relevant code in the gt-render module and there are some problems there. Sorry about this - You're not having much luck with your question are you :-( I've just discussed the event-handling code with Jody (one of the core developers) and we'll do our best fix it up shortly. When that's done I'll post an update to this thread. Michael On 13 April 2011 23:24, amrita90mu <[email protected]> wrote: > hi...i have a query here... > i have used enableLayerTable(true) in my code..the output is as shown in the > image. I hve added multiple layers. Can someone help me to get the string of > the name of the layer which is SELECTED ie. on which the blue colored box is > made.(INDIA_boundary_arc) > I m not gettin any method that gives the string of the selected layer. > > http://osgeo-org.1803224.n2.nabble.com/file/n6268961/project.bmp > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/get-selected-layer-from-enable-layer-table-tp6268961p6268961.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
