Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@98825 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8a6bcf09fe
commit
285ebafb54
|
@ -25,12 +25,21 @@
|
||||||
<dependent-module archiveName="tabular-data-wizard-widget-1.3.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-wizard-widget/tabular-data-wizard-widget">
|
<dependent-module archiveName="tabular-data-wizard-widget-1.3.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-wizard-widget/tabular-data-wizard-widget">
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-csv-import-widget-2.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-csv-import-widget/tabular-data-csv-import-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-sdmx-import-widget-2.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-sdmx-import-widget/tabular-data-sdmx-import-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
<dependent-module archiveName="tabular-data-open-widget-2.3.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-open-widget/tabular-data-open-widget">
|
<dependent-module archiveName="tabular-data-open-widget-2.3.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-open-widget/tabular-data-open-widget">
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
<dependent-module archiveName="tabular-data-csv-export-widget-1.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-csv-export-widget/tabular-data-csv-export-widget">
|
<dependent-module archiveName="tabular-data-csv-export-widget-1.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-csv-export-widget/tabular-data-csv-export-widget">
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-sdmx-export-widget-1.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-sdmx-export-widget/tabular-data-sdmx-export-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
<dependent-module archiveName="tabular-data-codelistmapping-import-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-codelistmapping-import-widget/tabular-data-codelistmapping-import-widget">
|
<dependent-module archiveName="tabular-data-codelistmapping-import-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-codelistmapping-import-widget/tabular-data-codelistmapping-import-widget">
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
|
@ -52,6 +61,9 @@
|
||||||
<dependent-module archiveName="tabular-data-extractcodelist-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-extractcodelist-widget/tabular-data-extractcodelist-widget">
|
<dependent-module archiveName="tabular-data-extractcodelist-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-extractcodelist-widget/tabular-data-extractcodelist-widget">
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-unionwizard-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-unionwizard-widget/tabular-data-unionwizard-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
<property name="context-root" value="tabular-data-portlet"/>
|
<property name="context-root" value="tabular-data-portlet"/>
|
||||||
<property name="java-output-path" value="/tabular-data-portlet/target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes"/>
|
<property name="java-output-path" value="/tabular-data-portlet/target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||||
</wb-module>
|
</wb-module>
|
||||||
|
|
8
pom.xml
8
pom.xml
|
@ -319,6 +319,14 @@
|
||||||
<artifactId>tabular-data-extractcodelist-widget</artifactId>
|
<artifactId>tabular-data-extractcodelist-widget</artifactId>
|
||||||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- tabular-data-unionwizard-widget -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
<artifactId>tabular-data-unionwizard-widget</artifactId>
|
||||||
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!--tabular-data-tasks-widget -->
|
<!--tabular-data-tasks-widget -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -28,6 +28,7 @@ import org.gcube.portlets.user.td.tablewidget.client.rows.DeleteRows;
|
||||||
import org.gcube.portlets.user.td.tablewidget.client.rows.EditRowDialog;
|
import org.gcube.portlets.user.td.tablewidget.client.rows.EditRowDialog;
|
||||||
import org.gcube.portlets.user.td.tablewidget.client.util.UtilsGXT3;
|
import org.gcube.portlets.user.td.tablewidget.client.util.UtilsGXT3;
|
||||||
import org.gcube.portlets.user.td.taskswidget.client.TdTaskController;
|
import org.gcube.portlets.user.td.taskswidget.client.TdTaskController;
|
||||||
|
import org.gcube.portlets.user.td.unionwizardwidget.client.UnionWizardTD;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ChangeTableRequestEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ChangeTableRequestEvent;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.GridContextMenuItemEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.GridContextMenuItemEvent;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.GridHeaderColumnMenuItemEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.GridHeaderColumnMenuItemEvent;
|
||||||
|
@ -525,6 +526,7 @@ public class TabularDataController {
|
||||||
case TABLEFILTER:
|
case TABLEFILTER:
|
||||||
break;
|
break;
|
||||||
case TABLEUNION:
|
case TABLEUNION:
|
||||||
|
openTableUnionWizard();
|
||||||
break;
|
break;
|
||||||
case TABLEGROUPBY:
|
case TABLEGROUPBY:
|
||||||
openGroupBy();
|
openGroupBy();
|
||||||
|
@ -822,6 +824,41 @@ public class TabularDataController {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void openTableUnionWizard() {
|
||||||
|
GWT.runAsync(new RunAsyncCallback() {
|
||||||
|
|
||||||
|
public void onSuccess() {
|
||||||
|
openWizard();
|
||||||
|
UnionWizardTD unionWizard = new UnionWizardTD(
|
||||||
|
trId,"Union", eventBus);
|
||||||
|
|
||||||
|
unionWizard.addListener(new WizardListener() {
|
||||||
|
public void failed(Throwable throwable, String reason,
|
||||||
|
String details) {
|
||||||
|
UtilsGXT3.alert(reason, details);
|
||||||
|
resumeUIState();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void completed(TRId id) {
|
||||||
|
openTable(id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void aborted() {
|
||||||
|
resumeUIState();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
unionWizard.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onFailure(Throwable reason) {
|
||||||
|
asyncCodeLoadingFailed(reason);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -83,8 +83,7 @@ public class ModifyToolBar {
|
||||||
filterButton.addSelectHandler(new SelectHandler() {
|
filterButton.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
// eventBus.fireEvent(new
|
//eventBus.fireEvent(new RibbonEvent(RibbonType.TABLEFILTER));
|
||||||
// ImportTableEvent(ImportTableType.JSON));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -101,8 +100,7 @@ public class ModifyToolBar {
|
||||||
unionButton.addSelectHandler(new SelectHandler() {
|
unionButton.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
// eventBus.fireEvent(new
|
eventBus.fireEvent(new RibbonEvent(RibbonType.TABLEUNION));
|
||||||
// ImportTableEvent(ImportTableType.JSON));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -206,8 +204,7 @@ public class ModifyToolBar {
|
||||||
annotationButton.addSelectHandler(new SelectHandler() {
|
annotationButton.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
// eventBus.fireEvent(new
|
//eventBus.fireEvent(new RibbonEvent(RibbonType.ANNOTATIONADD));
|
||||||
// ImportTableEvent(ImportTableType.JSON));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -332,7 +329,7 @@ public class ModifyToolBar {
|
||||||
case TABLECURATION:
|
case TABLECURATION:
|
||||||
// Table
|
// Table
|
||||||
filterButton.disable();
|
filterButton.disable();
|
||||||
unionButton.disable();
|
unionButton.enable();
|
||||||
groupbyButton.enable();
|
groupbyButton.enable();
|
||||||
aggregateButton.disable();
|
aggregateButton.disable();
|
||||||
addRowButton.enable();
|
addRowButton.enable();
|
||||||
|
|
|
@ -40,13 +40,17 @@
|
||||||
name='org.gcube.portlets.user.td.extractcodelistwidget.ExtractCodelistWizardTD' />
|
name='org.gcube.portlets.user.td.extractcodelistwidget.ExtractCodelistWizardTD' />
|
||||||
<inherits
|
<inherits
|
||||||
name='org.gcube.portlets.user.td.codelistmappingimportwidget.CodelistMappingImportWizardTD' />
|
name='org.gcube.portlets.user.td.codelistmappingimportwidget.CodelistMappingImportWizardTD' />
|
||||||
|
<inherits name='org.gcube.portlets.user.td.unionwizardwidget.UnionWizardTD' />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<inherits
|
<inherits
|
||||||
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
||||||
|
|
||||||
|
|
||||||
<inherits name='org.gcube.portlets.user.td.taskswidget.TdTasksWidget' />
|
<inherits name='org.gcube.portlets.user.td.taskswidget.TdTasksWidget' />
|
||||||
<inherits name="org.gcube.portlets.user.tdtemplate.TabularDataTemplate" />
|
<inherits name="org.gcube.portlets.user.tdtemplate.TabularDataTemplate" />
|
||||||
<inherits name="org.gcube.portlets.user.tdcolumnoperation.TdColumnOperation"/>
|
<inherits name="org.gcube.portlets.user.tdcolumnoperation.TdColumnOperation" />
|
||||||
|
|
||||||
<inherits name='org.gcube.portlets.widgets.sessionchecker.SessionChecker' />
|
<inherits name='org.gcube.portlets.widgets.sessionchecker.SessionChecker' />
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@
|
||||||
name='org.gcube.portlets.user.td.extractcodelistwidget.ExtractCodelistWizardTD' />
|
name='org.gcube.portlets.user.td.extractcodelistwidget.ExtractCodelistWizardTD' />
|
||||||
<inherits
|
<inherits
|
||||||
name='org.gcube.portlets.user.td.codelistmappingimportwidget.CodelistMappingImportWizardTD' />
|
name='org.gcube.portlets.user.td.codelistmappingimportwidget.CodelistMappingImportWizardTD' />
|
||||||
|
<inherits name='org.gcube.portlets.user.td.unionwizardwidget.UnionWizardTD' />
|
||||||
|
|
||||||
|
|
||||||
<inherits
|
<inherits
|
||||||
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
||||||
|
|
Loading…
Reference in New Issue