tabular-data-column-widget/src/main/java/org/gcube/portlets/user/td/columnwidget/client/ColumnWidgetEntry.java

50 lines
1.5 KiB
Java

package org.gcube.portlets.user.td.columnwidget.client;
import org.gcube.portlets.user.td.columnwidget.client.progress.ChangeColumnTypeProgressDialog;
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.type.ChangeColumnTypeSession;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.EntryPoint;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;
/**
*
* @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class ColumnWidgetEntry implements EntryPoint {
public void onModuleLoad() {
EventBus eventBus= new SimpleEventBus();
TRId trId=new TRId();
//For example Tabular Resource 1 and table 1
trId.setId("7");
trId.setTableId("402");
/*
RemoveColumnDialog dialog=new RemoveColumnDialog(trId);
dialog.show();
ChangeToAnnotationColumnDialog changeToAnnotation=new ChangeToAnnotationColumnDialog(trId);
changeToAnnotation.show();
*/
/*ChangeColumnTypeDialog changeColumnType=new ChangeColumnTypeDialog(trId,eventBus);
changeColumnType.show();
*/
ChangeColumnTypeSession changeColumnTypeSession=null;
ChangeColumnTypeProgressDialog c=new ChangeColumnTypeProgressDialog(changeColumnTypeSession, eventBus);
c.show();
/*DialogCodelistSelection dcs=new DialogCodelistSelection();
dcs.show();
*/
Log.info("Hello!");
}
}