Create Multi Tab Management

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-map-widget@100723 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-15 16:45:33 +00:00 committed by Giancarlo Panichi
parent 1dab1eb5cf
commit 8a3b6288f9
2 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTIsLockedExcep
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
import org.gcube.portlets.user.td.gwtservice.shared.map.MapCreationSession;
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
import org.gcube.portlets.user.td.gwtservice.shared.user.UserInfo;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
@ -36,12 +37,12 @@ public class MapWidgetTD extends WizardWindow {
* @param title
* @param eventBus
*/
public MapWidgetTD(TRId trId, String userName, String title, EventBus eventBus) {
public MapWidgetTD(TRId trId, UserInfo userInfo, String title, EventBus eventBus) {
super(title,eventBus);
mapCreationSession= new MapCreationSession();
mapCreationSession.setTrId(trId);
mapCreationSession.setUsername(userName);
mapCreationSession.setUsername(userInfo.getUsername());
retrieveColumns();
}

View File

@ -1,5 +1,6 @@
package org.gcube.portlets.user.td.mapwidget.client;
import org.gcube.portlets.user.td.gwtservice.shared.user.UserInfo;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -11,10 +12,11 @@ public class MapWidgetTDEntry implements EntryPoint {
public void onModuleLoad() {
TRId trId=new TRId("10","20");
String userName="test.user";
UserInfo userInfo=new UserInfo();
userInfo.setUsername("test.user");
SimpleEventBus eventBus=new SimpleEventBus();
MapWidgetTD mapCreationWizard= new MapWidgetTD(trId, userName,"Map Creation",eventBus);
MapWidgetTD mapCreationWizard= new MapWidgetTD(trId, userInfo,"Map Creation",eventBus);
Log.info(mapCreationWizard.getId());
}
}