view src/econnect/wp3_3/client/Sti.java @ 44:5db587ba4b0f CellTable

background and border color of CellTable for selection and hover
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Fri, 07 Dec 2012 18:57:02 +0100
parents cf06b77a8bbd
children
line wrap: on
line source

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();
				  }
			});
		}		
		
	}
		
}