209: TDM - Show the resources through a ListView widget
Task-Url: https://support.d4science.org/issues/209 Updated Chart Resource visualization git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@115310 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5d54ed41c7
commit
edb1503ad2
|
@ -78,8 +78,8 @@ public class ChartViewerPanel extends FramedPanel {
|
|||
private static final int IMAGE_HEIGHT = 768;
|
||||
// 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 RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET = "RetrieveFileAndDiscoverMimeTypeServlet";
|
||||
//private static final String ATTRIBUTE_STORAGE_URI = "storageURI";
|
||||
|
||||
private static final String WIDTH = "810px";
|
||||
private static final String HEIGHT = "440px";
|
||||
|
@ -198,7 +198,7 @@ public class ChartViewerPanel extends FramedPanel {
|
|||
UriResolverSession uriResolverSession = new UriResolverSession(
|
||||
internalURITD.getId(), ApplicationType.SMP_ID,
|
||||
resourceTDDescriptor.getName(), internalURITD.getMimeType());
|
||||
|
||||
Log.debug("UriResolverSession: "+uriResolverSession);
|
||||
TDGWTServiceAsync.INSTANCE.getUriFromResolver(uriResolverSession,
|
||||
new AsyncCallback<String>() {
|
||||
|
||||
|
@ -227,8 +227,8 @@ public class ChartViewerPanel extends FramedPanel {
|
|||
|
||||
protected void createChartImageResource() {
|
||||
|
||||
final String path = GWT.getModuleBaseURL()
|
||||
+ RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET;
|
||||
/*final String path = GWT.getModuleBaseURL()
|
||||
+ RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET;*/
|
||||
|
||||
chartImageResource = new ImageResource() {
|
||||
|
||||
|
@ -250,8 +250,7 @@ public class ChartViewerPanel extends FramedPanel {
|
|||
@Override
|
||||
public SafeUri getSafeUri() {
|
||||
|
||||
SafeUri uri = UriUtils.fromString(path + "?"
|
||||
+ ATTRIBUTE_STORAGE_URI + "=" + chartLink);
|
||||
SafeUri uri = UriUtils.fromString(chartLink);
|
||||
|
||||
Log.debug("Image uri:" + uri.asString());
|
||||
return uri;
|
||||
|
|
Loading…
Reference in New Issue