Updated Resource
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@113635 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
72bfc56d65
commit
ba13056a99
|
@ -67,9 +67,10 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
|
||||||
*/
|
*/
|
||||||
public class ChartViewerPanel extends FramedPanel {
|
public class ChartViewerPanel extends FramedPanel {
|
||||||
private static final String COMBO_ZOOM_LEVEL_WIDTH = "100px";
|
private static final String COMBO_ZOOM_LEVEL_WIDTH = "100px";
|
||||||
private static final int IMAGE_WIDTH = 2000;
|
private static final int IMAGE_WIDTH = 1024;
|
||||||
private static final int IMAGE_HEIGHT = 1000;
|
private static final int IMAGE_HEIGHT = 768;
|
||||||
private static final String RETRIEVE_CHART_FILE_SERVLET = "RetrieveChartFileServlet";
|
//private static final String RETRIEVE_CHART_FILE_SERVLET = "RetrieveChartFileServlet";
|
||||||
|
private static final String RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET="RetrieveFileAndDiscoverMimeTypeServlet";
|
||||||
private static final String ATTRIBUTE_STORAGE_URI = "storageURI";
|
private static final String ATTRIBUTE_STORAGE_URI = "storageURI";
|
||||||
|
|
||||||
private static final String WIDTH = "800px";
|
private static final String WIDTH = "800px";
|
||||||
|
@ -178,10 +179,10 @@ public class ChartViewerPanel extends FramedPanel {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Log.debug("InteranlURI: " + internalURITD);
|
Log.debug("InteranlURI: " + internalURITD);
|
||||||
final String storageURI = encodeUrlDelimiters(internalURITD.getUri());
|
final String storageURI = encodeUrlDelimiters(internalURITD.getUrl());
|
||||||
|
|
||||||
final String path = GWT.getModuleBaseURL()
|
final String path = GWT.getModuleBaseURL()
|
||||||
+ RETRIEVE_CHART_FILE_SERVLET;
|
+ RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET;
|
||||||
|
|
||||||
chartImageResource = new ImageResource() {
|
chartImageResource = new ImageResource() {
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,12 @@
|
||||||
<servlet-class>org.gcube.portlets.user.td.gwtservice.server.RetrieveChartFileServlet</servlet-class>
|
<servlet-class>org.gcube.portlets.user.td.gwtservice.server.RetrieveChartFileServlet</servlet-class>
|
||||||
</servlet>
|
</servlet>
|
||||||
|
|
||||||
|
<!-- Retrieve File and Discover Mime Type Servlet -->
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>RetrieveFileAndDiscoverMimeTypeServlet</servlet-name>
|
||||||
|
<servlet-class>org.gcube.portlets.user.td.gwtservice.server.RetrieveFileAndDiscoverMimeTypeServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>jUnitHostImpl</servlet-name>
|
<servlet-name>jUnitHostImpl</servlet-name>
|
||||||
<servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>
|
<servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>
|
||||||
|
@ -34,6 +40,11 @@
|
||||||
<url-pattern>/ResourcesWidget/RetrieveChartFileServlet</url-pattern>
|
<url-pattern>/ResourcesWidget/RetrieveChartFileServlet</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
<!-- Retrieve File And Discover Mime Type Servlet -->
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>RetrieveFileAndDiscoverMimeTypeServlet</servlet-name>
|
||||||
|
<url-pattern>/ResourcesWidget/RetrieveFileAndDiscoverMimeTypeServlet</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>jUnitHostImpl</servlet-name>
|
<servlet-name>jUnitHostImpl</servlet-name>
|
||||||
|
|
Loading…
Reference in New Issue