Author: simoneg
Date: Wed Oct 28 23:27:45 2009
New Revision: 830792

URL: http://svn.apache.org/viewvc?rev=830792&view=rev
Log:
LABS-207: Fix for mapped smart lists

Modified:
    
labs/magma/trunk/maps-google/src/main/java/org/apache/magma/maps/google/MappedSmartListProducer.java

Modified: 
labs/magma/trunk/maps-google/src/main/java/org/apache/magma/maps/google/MappedSmartListProducer.java
URL: 
http://svn.apache.org/viewvc/labs/magma/trunk/maps-google/src/main/java/org/apache/magma/maps/google/MappedSmartListProducer.java?rev=830792&r1=830791&r2=830792&view=diff
==============================================================================
--- 
labs/magma/trunk/maps-google/src/main/java/org/apache/magma/maps/google/MappedSmartListProducer.java
 (original)
+++ 
labs/magma/trunk/maps-google/src/main/java/org/apache/magma/maps/google/MappedSmartListProducer.java
 Wed Oct 28 23:27:45 2009
@@ -44,7 +44,7 @@
                "</a>" +
                "</div>";
 
-       public <T> MappedSmartListProducer(Class<T> myclass, Collection<? 
extends T> list) {
+       public <T extends MagmaBeanSupport> MappedSmartListProducer(Class<T> 
myclass, Collection<? extends T> list) {
                super(myclass, list);
        }
 
@@ -85,6 +85,9 @@
 
        @Override
        public void produce(Writer stream) throws IOException {
+               // We cannot use non-table cause javascript depends on data 
inside the table
+               // we could solve this with HTML5 microtype informations
+               useTable();
                stream.write("<div class=\"MagmaGoogleMapsList\">");
                super.produce(stream);
                sendPrototype(stream);
@@ -117,8 +120,9 @@
        }
 
        
+       
        @Override
-       protected void closeHeaderRow(Writer tables) throws IOException {
+       protected void closeHeaderRow(Node root, Writer tables) throws 
IOException {
                tables.write("<th class=\"MagmaList-HeaderCell 
MagmaGoogleMapsMarker\">");
                tables.write(new LocalizableString("Marker").toString());
                tables.write("</th>");          
@@ -129,7 +133,7 @@
        }
        
        @Override
-       protected void closeRow(Object o, Writer tables) throws IOException {
+       protected void closeRow(MagmaBeanSupport o, Writer tables) throws 
IOException {
                GeoCoordinates coords = null;
                if (o instanceof GeoAware) {
                        GeoLocated loc = ((GeoAware)o).getGeoLocatedObject();



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to