Java tutorial
/* * Copyright (c) 2014 OBiBa. All rights reserved. * * This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.obiba.opal.web.gwt.plot.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.ScriptInjector; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.TextResource; public class PlotEntryPoint implements EntryPoint { /** * ClientBundle for JavaScripts. */ public interface Scripts extends ClientBundle { Scripts INSTANCE = GWT.create(Scripts.class); // @Source("js/jquery-1.10.2.min.js") // TextResource scriptJQuery(); @Source("js/highcharts.js") TextResource scriptHighCharts(); } @Override public void onModuleLoad() { //ScriptInjector.fromString(Scripts.INSTANCE.scriptJQuery().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject(); ScriptInjector.fromString(Scripts.INSTANCE.scriptHighCharts().getText()) .setWindow(ScriptInjector.TOP_WINDOW).inject(); } }