diff src/econnect/wp3_3/client/Sti.java @ 3:cf06b77a8bbd

Committed branch of the e4D repos sti-gwt branch 16384. git-svn-id: http://dev.dariah.eu/svn/repos/eu.dariah.de/ap1/sti-gwt-dariah-geobrowser@36 f2b5be40-def6-11e0-8a09-b3c1cc336c6b
author StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
date Tue, 17 Jul 2012 13:34:40 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/econnect/wp3_3/client/Sti.java	Tue Jul 17 13:34:40 2012 +0000
@@ -0,0 +1,40 @@
+package econnect.wp3_3.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.event.logical.shared.ResizeEvent;
+import com.google.gwt.event.logical.shared.ResizeHandler;
+
+import econnect.wp3_3.client.core.ApplicationGrid;
+import econnect.wp3_3.client.core.StiCore;
+import econnect.wp3_3.client.widgets.table.StiTable;
+
+/**
+ * Entry point class for the Spatio-Temporal Interface
+ */
+public class Sti implements EntryPoint {
+
+	/**
+	 * This is the entry point method.
+	 */
+	public void onModuleLoad() {
+
+		StiCore core = StiCore.createStiCore();
+		
+		if( core.isIEBrowser() ){
+			Window.Location.assign("http://www.informatik.uni-leipzig.de:8080/e4D/e4D-ie.html");
+		}
+		else {
+			StiTable table = new StiTable(core);
+			final ApplicationGrid grid = new ApplicationGrid(core,table);
+			
+			Window.addResizeHandler(new ResizeHandler() {
+				  public void onResize(final ResizeEvent event) {
+					    grid.resize();
+				  }
+			});
+		}		
+		
+	}
+		
+}