Mercurial > hg > STI-GWT
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:2897af43ccc6 | 3:cf06b77a8bbd |
---|---|
1 package econnect.wp3_3.client; | |
2 | |
3 import com.google.gwt.core.client.EntryPoint; | |
4 import com.google.gwt.user.client.Window; | |
5 import com.google.gwt.event.logical.shared.ResizeEvent; | |
6 import com.google.gwt.event.logical.shared.ResizeHandler; | |
7 | |
8 import econnect.wp3_3.client.core.ApplicationGrid; | |
9 import econnect.wp3_3.client.core.StiCore; | |
10 import econnect.wp3_3.client.widgets.table.StiTable; | |
11 | |
12 /** | |
13 * Entry point class for the Spatio-Temporal Interface | |
14 */ | |
15 public class Sti implements EntryPoint { | |
16 | |
17 /** | |
18 * This is the entry point method. | |
19 */ | |
20 public void onModuleLoad() { | |
21 | |
22 StiCore core = StiCore.createStiCore(); | |
23 | |
24 if( core.isIEBrowser() ){ | |
25 Window.Location.assign("http://www.informatik.uni-leipzig.de:8080/e4D/e4D-ie.html"); | |
26 } | |
27 else { | |
28 StiTable table = new StiTable(core); | |
29 final ApplicationGrid grid = new ApplicationGrid(core,table); | |
30 | |
31 Window.addResizeHandler(new ResizeHandler() { | |
32 public void onResize(final ResizeEvent event) { | |
33 grid.resize(); | |
34 } | |
35 }); | |
36 } | |
37 | |
38 } | |
39 | |
40 } |