package uk.ac.edukapp.renderer;

public class GadgetRenderer {

	private static GadgetRenderer renderer = new GadgetRenderer();

	private GadgetRenderer() {
	}

	public static GadgetRenderer getInstance() {
		return renderer;
	}

	public String render(String uri, int width, int height) {

		String html = "";
		html += "<iframe src=\"http://widgets.open.ac.uk:8080/shindig/gadgets/ifr?url="
				+ uri + "\"";
		html += " width=\"" + "500" + "\"";
		html += " height=\"" + "300" + "\"";
		html += "></iframe>";
		return html;
	}

	public String render(String uri) {
		return render(uri, 500, 300);
	}
}

@@ -28,16 +28,81 @@
 rer;%0D%0A%0D%0A
+import uk.ac.edukapp.server.configuration.StoreConfiguration;%0D%0A%0D%0A
 public c
@@ -380,24 +380,28 @@
 html = %22%22;%0D%0A
+%09%09%0D%0A
 %09%09html += %22%3C
@@ -417,46 +417,65 @@
 c=%5C%22
-http://widgets.open.ac.uk:8080/shindig
+%22+StoreConfiguration.getInstance().getShindigLocation()+%22
 /gad

Use StoreConfiguration to determine gadget render info