package fueltrack.client;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import fueltrack.client.ui.FuelTrackUI;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class FuelTrack implements EntryPoint {
private FuelTrackDataServiceAsync fuelTrackDataService = GWT.create(FuelTrackDataService.class);
/**
* This is the entry point method.
*/
public void onModuleLoad() {
final FuelTrackUI fuelTrackUI = new FuelTrackUI(fuelTrackDataService);
Viewport viewport = new Viewport();
viewport.setLayout(new FitLayout());
viewport.add(fuelTrackUI);
RootPanel.get().add(viewport);
}
}