ref 17252: Enable DEA Analysis
https://support.d4science.org/issues/17252 Added DEA Analysis git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/performfish-analytics-portlet@182234 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6758f26dbb
commit
cd34779008
|
@ -10,6 +10,7 @@ import org.gcube.portlets.user.performfishanalytics.client.controllers.PerformFi
|
||||||
import org.gcube.portlets.user.performfishanalytics.client.controllers.PerformFishAnalyticsViewController;
|
import org.gcube.portlets.user.performfishanalytics.client.controllers.PerformFishAnalyticsViewController;
|
||||||
import org.gcube.portlets.user.performfishanalytics.client.event.LoadPopulationTypeEvent;
|
import org.gcube.portlets.user.performfishanalytics.client.event.LoadPopulationTypeEvent;
|
||||||
import org.gcube.portlets.user.performfishanalytics.client.resources.PerformFishResources;
|
import org.gcube.portlets.user.performfishanalytics.client.resources.PerformFishResources;
|
||||||
|
import org.gcube.portlets.user.performfishanalytics.client.resources.ResourcesLoader;
|
||||||
import org.gcube.portlets.user.performfishanalytics.client.view.util.DecodeParameterUtil;
|
import org.gcube.portlets.user.performfishanalytics.client.view.util.DecodeParameterUtil;
|
||||||
import org.gcube.portlets.user.performfishanalytics.shared.performfishservice.PerformFishInitParameter;
|
import org.gcube.portlets.user.performfishanalytics.shared.performfishservice.PerformFishInitParameter;
|
||||||
|
|
||||||
|
@ -38,6 +39,7 @@ public class PerformFishAnalytics implements EntryPoint {
|
||||||
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
|
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
GWT.create(ResourcesLoader.class);
|
||||||
|
|
||||||
Map<String, String> initParams = new HashMap<String, String>();
|
Map<String, String> initParams = new HashMap<String, String>();
|
||||||
for (String key : Window.Location.getParameterMap().keySet()) {
|
for (String key : Window.Location.getParameterMap().keySet()) {
|
||||||
|
|
|
@ -112,4 +112,8 @@ public interface PerformFishResources extends ClientBundle {
|
||||||
|
|
||||||
@Source("BatchFarm_SYNOPTICTABLE")
|
@Source("BatchFarm_SYNOPTICTABLE")
|
||||||
public TextResource synopticTable();
|
public TextResource synopticTable();
|
||||||
|
|
||||||
|
@Source("jspdf.min.js")
|
||||||
|
TextResource jsPDF();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package org.gcube.portlets.user.performfishanalytics.client.resources;
|
||||||
|
|
||||||
|
import com.google.gwt.core.client.ScriptInjector;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resources Loader
|
||||||
|
*
|
||||||
|
* @author Giancarlo Panichi
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class ResourcesLoader {
|
||||||
|
|
||||||
|
|
||||||
|
public ResourcesLoader() {
|
||||||
|
ScriptInjector.fromString(PerformFishResources.INSTANCE.jsPDF().getText())
|
||||||
|
.inject();
|
||||||
|
}
|
||||||
|
}
|
286
src/main/java/org/gcube/portlets/user/performfishanalytics/client/resources/jspdf.min.js
vendored
Normal file
286
src/main/java/org/gcube/portlets/user/performfishanalytics/client/resources/jspdf.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -876,4 +876,5 @@ public class DeaPanelResult extends Composite {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue