Added Open TR with parameter on url

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@113569 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-03-11 15:07:56 +00:00
parent dea63103e7
commit c86546ea06
2 changed files with 20 additions and 18 deletions

View File

@ -339,22 +339,29 @@ public class TabularDataController {
//
public void restoreUISession() {
TDGWTServiceAsync.INSTANCE.restoreUISession(new AsyncCallback<TRId>() {
String value = com.google.gwt.user.client.Window.Location
.getParameter("TabularResourceId");
TRId startTRId = new TRId(value);
public void onFailure(Throwable caught) {
TDGWTServiceAsync.INSTANCE.restoreUISession(startTRId,
new AsyncCallback<TRId>() {
}
public void onSuccess(TRId trId) {
if (trId != null) {
if (trId.getId() != null && !trId.getId().isEmpty()) {
openTable(trId);
public void onFailure(Throwable caught) {
UtilsGXT3.alert("Error",
caught.getLocalizedMessage());
}
}
}
public void onSuccess(TRId trId) {
if (trId != null) {
if (trId.getId() != null && !trId.getId().isEmpty()) {
openTable(trId);
}
}
});
}
});
}
@ -1988,8 +1995,6 @@ public class TabularDataController {
UtilsGXT3.alert("Error", "No tabular resource present");
}
}
private void openGeometryCreatePoint() {
Log.debug("Request Geometry Create Point Tab");
@ -2005,7 +2010,6 @@ public class TabularDataController {
}
}
private void openDownscaleCSquare() {
openDownscaleCSquare(null, null);
}
@ -2024,9 +2028,7 @@ public class TabularDataController {
UtilsGXT3.alert("Error", "No tabular resource present");
}
}
private void openBackgroundMonitor() {
Log.debug("Request Open Monitor Background Tab");
WidgetRequestEvent e = new WidgetRequestEvent(

View File

@ -247,7 +247,7 @@ public class TemplateApplyPanel extends FramedPanel {
v.add(toolBarHead, new VerticalLayoutData(1, -1, new Margins(0)));
v.add(grid, new VerticalLayoutData(-1, -1, new Margins(0)));
v.add(toolBar, new VerticalLayoutData(1, 25, new Margins(0)));
v.add(flowButton, new VerticalLayoutData(-1, 36,
v.add(flowButton, new VerticalLayoutData(1, 36,
new Margins(5, 2, 5, 2)));
add(v);