You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2009/10/29 00:27:45 UTC

svn commit: r830792 - /labs/magma/trunk/maps-google/src/main/java/org/apache/magma/maps/google/MappedSmartListProducer.java

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: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org