Updated for curation on validations

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@95874 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-20 16:54:56 +00:00
parent 7f9db52c2f
commit 6c37ea0a19
2 changed files with 56 additions and 5 deletions

View File

@ -41,6 +41,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.type.WidgetRequestTyp
import org.gcube.portlets.user.td.widgetcommonevent.shared.CellData;
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridHeaderOperationId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridOperationId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.RequestProperties;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.grid.model.RowRaw;
import org.gcube.portlets.user.td.wizardwidget.client.WizardListener;
@ -245,6 +246,19 @@ public class TabularDataController {
});
eventBus.addHandler(WidgetRequestEvent.TYPE,
new WidgetRequestEvent.WidgetRequestEventHandler() {
@Override
public void onWidgetRequest(WidgetRequestEvent event) {
Log.debug("Catch Event HeaderColumnMenuItemEvent");
doWidgetRequestCommand(event);
}
});
eventBus.fireEvent(new UIStateEvent(UIStateType.START));
}
@ -573,6 +587,43 @@ public class TabularDataController {
break;
}
}
//TODO
protected void doWidgetRequestCommand(WidgetRequestEvent event){
WidgetRequestType widgetRequestType=event.getWidgetRequestType();
switch(widgetRequestType){
case CHANGECOLUMNTYPEPANEL:
break;
case CHANGETABLETYPEPANEL:
break;
case CURATIONBYREPLACEBATCHDIALOG:
openBatchReplace(event.getTrId(),event.getRequestProperties());
break;
case DELETECOLUMNPANEL:
break;
case DUPLICATESROWSPANEL:
break;
case LABELCOLUNPANEL:
break;
case VALIDATIONSTASKSPANEL:
break;
default:
break;
}
}
protected void openBatchReplace(TRId trId, RequestProperties requestProperties){
Log.debug("Request Open Batch Replace Dialog: "+trId+" "+requestProperties);
if (trId != null) {
ReplaceBatchDialog dialog = new ReplaceBatchDialog(trId,
requestProperties, eventBus);
dialog.show();
} else {
Log.error("TRId is null");
UtilsGXT3.alert("Error", "No tabular resource present");
}
}
protected void openSDMXImportWizard() {
GWT.runAsync(new RunAsyncCallback() {

View File

@ -45,17 +45,17 @@
<!-- Specify the app entry point class. -->
<entry-point class='org.gcube.portlets.user.td.client.TabularDataPortlet' />
<!--
<set-property name="log_DivLogger" value="ENABLED" /> <set-property
name="log_ConsoleLogger" value="ENABLED" /> <set-property name="log_FirebugLogger"
value="ENABLED" /> <set-property name="log_GWTLogger" value="ENABLED" />
<set-property name="log_SystemLogger" value="ENABLED" /> -->
<set-property name="log_SystemLogger" value="ENABLED" />
<!--
<set-property name="log_DivLogger" value="DISABLED" />
<set-property name="log_ConsoleLogger" value="DISABLED" />
<set-property name="log_FirebugLogger" value="DISABLED" />
<set-property name="log_GWTLogger" value="DISABLED" />
<set-property name="log_SystemLogger" value="DISABLED" />
<set-property name="log_SystemLogger" value="DISABLED" /> -->
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />