refs 5870: TDM - adding new functionalities to portlets
Task-Url: https://support.d4science.org/issues/5870 Updated to support SDMX Dataset export git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@142054 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
42aba812e7
commit
a923c96a25
|
@ -78,7 +78,6 @@ public class TDMLogs extends Window {
|
||||||
btnReload.setToolTip("Reload");
|
btnReload.setToolTip("Reload");
|
||||||
toolBar.add(btnReload);
|
toolBar.add(btnReload);
|
||||||
|
|
||||||
|
|
||||||
SimpleContainer contentLogs = new SimpleContainer();
|
SimpleContainer contentLogs = new SimpleContainer();
|
||||||
contentLogs.setBorders(false);
|
contentLogs.setBorders(false);
|
||||||
contentLogs.setWidth(CONTENTLOGSWIDTH);
|
contentLogs.setWidth(CONTENTLOGSWIDTH);
|
||||||
|
@ -92,24 +91,25 @@ public class TDMLogs extends Window {
|
||||||
|
|
||||||
VerticalLayoutContainer logsPanelLayout = new VerticalLayoutContainer();
|
VerticalLayoutContainer logsPanelLayout = new VerticalLayoutContainer();
|
||||||
|
|
||||||
logsPanelLayout.add(toolBar, new VerticalLayoutData(1,32,new Margins(1)));
|
logsPanelLayout.add(toolBar, new VerticalLayoutData(1, 32, new Margins(
|
||||||
logsPanelLayout.add(contentLogs, new VerticalLayoutData(1,-1,new Margins(1)));
|
1)));
|
||||||
|
logsPanelLayout.add(contentLogs, new VerticalLayoutData(1, -1,
|
||||||
|
new Margins(1)));
|
||||||
|
|
||||||
logsPanel.add(logsPanelLayout);
|
logsPanel.add(logsPanelLayout);
|
||||||
add(logsPanel);
|
add(logsPanel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void callLogsServlet() {
|
public void callLogsServlet() {
|
||||||
String path = GWT.getModuleBaseURL() + TDMLogsServlet;
|
String path = GWT.getModuleBaseURL() + TDMLogsServlet + "?"
|
||||||
|
+ Constants.CURR_GROUP_ID + "="
|
||||||
|
+ GCubeClientContext.getCurrentContextId();
|
||||||
Log.debug("TDMLogsServlet path:" + path);
|
Log.debug("TDMLogsServlet path:" + path);
|
||||||
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, path);
|
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, path);
|
||||||
builder.setHeader(Constants.CURR_GROUP_ID,
|
builder.setHeader(Constants.CURR_GROUP_ID,
|
||||||
GCubeClientContext.getCurrentContextId());
|
GCubeClientContext.getCurrentContextId());
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
builder.sendRequest(null, new RequestCallback() {
|
builder.sendRequest(null, new RequestCallback() {
|
||||||
|
|
||||||
|
@ -148,12 +148,11 @@ public class TDMLogs extends Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void update(String text) {
|
protected void update(String text) {
|
||||||
verticalContainer.clear();
|
verticalContainer.clear();
|
||||||
/*int body=text.indexOf("<body>");
|
/*
|
||||||
text=text.substring(body+6);*/
|
* int body=text.indexOf("<body>"); text=text.substring(body+6);
|
||||||
|
*/
|
||||||
|
|
||||||
SafeHtmlBuilder builderLogs = new SafeHtmlBuilder();
|
SafeHtmlBuilder builderLogs = new SafeHtmlBuilder();
|
||||||
|
|
||||||
|
@ -161,12 +160,12 @@ public class TDMLogs extends Window {
|
||||||
SafeHtml safeLogs = builderLogs.toSafeHtml();
|
SafeHtml safeLogs = builderLogs.toSafeHtml();
|
||||||
HTML hLogs = new HTML(safeLogs);
|
HTML hLogs = new HTML(safeLogs);
|
||||||
|
|
||||||
verticalContainer.add(hLogs, new VerticalLayoutData(1,-1,new Margins(1)));
|
verticalContainer.add(hLogs, new VerticalLayoutData(1, -1, new Margins(
|
||||||
|
1)));
|
||||||
|
|
||||||
forceLayout();
|
forceLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue