Added Statistical Widget
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@100892 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6ce9c382f7
commit
d8b14c1cb2
18
pom.xml
18
pom.xml
|
@ -241,7 +241,7 @@
|
||||||
<artifactId>tabular-data-wizard-widget</artifactId>
|
<artifactId>tabular-data-wizard-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-mainbox-widget -->
|
<!-- tabular-data-mainbox-widget -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
@ -376,7 +376,15 @@
|
||||||
<artifactId>tabular-data-map-widget</artifactId>
|
<artifactId>tabular-data-map-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-statistical-widget -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
<artifactId>tabular-data-statistical-widget</artifactId>
|
||||||
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!--tabular-data-tasks-widget -->
|
<!--tabular-data-tasks-widget -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
@ -397,9 +405,9 @@
|
||||||
<artifactId>tabular-data-column-operation</artifactId>
|
<artifactId>tabular-data-column-operation</artifactId>
|
||||||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- LOGGING -->
|
<!-- LOGGING -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.allen-sauer.gwt.log</groupId>
|
<groupId>com.allen-sauer.gwt.log</groupId>
|
||||||
|
|
|
@ -28,6 +28,7 @@ import org.gcube.portlets.user.td.openwidget.client.TDOpen;
|
||||||
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
|
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
|
||||||
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
|
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
|
||||||
import org.gcube.portlets.user.td.sharewidget.client.TRShare;
|
import org.gcube.portlets.user.td.sharewidget.client.TRShare;
|
||||||
|
import org.gcube.portlets.user.td.statisticalwidget.client.StatisticalWidget;
|
||||||
import org.gcube.portlets.user.td.tablewidget.client.CloneTabularResource;
|
import org.gcube.portlets.user.td.tablewidget.client.CloneTabularResource;
|
||||||
import org.gcube.portlets.user.td.tablewidget.client.history.HistoryDiscard;
|
import org.gcube.portlets.user.td.tablewidget.client.history.HistoryDiscard;
|
||||||
import org.gcube.portlets.user.td.tablewidget.client.rows.DeleteRows;
|
import org.gcube.portlets.user.td.tablewidget.client.rows.DeleteRows;
|
||||||
|
@ -839,6 +840,7 @@ public class TabularDataController {
|
||||||
case RSTUDIO:
|
case RSTUDIO:
|
||||||
break;
|
break;
|
||||||
case STATISTICAL:
|
case STATISTICAL:
|
||||||
|
openStatistical();
|
||||||
break;
|
break;
|
||||||
case SPREAD:
|
case SPREAD:
|
||||||
break;
|
break;
|
||||||
|
@ -1407,7 +1409,17 @@ public class TabularDataController {
|
||||||
HistoryDiscard historyDiscard = new HistoryDiscard(eventBus);
|
HistoryDiscard historyDiscard = new HistoryDiscard(eventBus);
|
||||||
historyDiscard.discard();
|
historyDiscard.discard();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void openStatistical() {
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
StatisticalWidget statisticalWidget= new StatisticalWidget(trId, eventBus);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void openTemplateApply() {
|
protected void openTemplateApply() {
|
||||||
Log.debug("Template Apply call");
|
Log.debug("Template Apply call");
|
||||||
if (trId != null) {
|
if (trId != null) {
|
||||||
|
|
|
@ -332,7 +332,7 @@ public class AnalyseToolBar {
|
||||||
processGroup.setId("Process");
|
processGroup.setId("Process");
|
||||||
processGroup.setStyleName("ribbon");
|
processGroup.setStyleName("ribbon");
|
||||||
processGroup.setHeadingText("Process");
|
processGroup.setHeadingText("Process");
|
||||||
processGroup.disable();
|
processGroup.enable();
|
||||||
toolBar.add(processGroup);
|
toolBar.add(processGroup);
|
||||||
|
|
||||||
FlexTable processLayout = new FlexTable();
|
FlexTable processLayout = new FlexTable();
|
||||||
|
@ -340,6 +340,7 @@ public class AnalyseToolBar {
|
||||||
|
|
||||||
rstudioButton = new TextButton("R Studio",
|
rstudioButton = new TextButton("R Studio",
|
||||||
TabularDataResources.INSTANCE.rstudio32());
|
TabularDataResources.INSTANCE.rstudio32());
|
||||||
|
rstudioButton.disable();
|
||||||
rstudioButton.setScale(ButtonScale.LARGE);
|
rstudioButton.setScale(ButtonScale.LARGE);
|
||||||
rstudioButton.setIconAlign(IconAlign.TOP);
|
rstudioButton.setIconAlign(IconAlign.TOP);
|
||||||
rstudioButton.setToolTip("R Studio");
|
rstudioButton.setToolTip("R Studio");
|
||||||
|
@ -357,6 +358,7 @@ public class AnalyseToolBar {
|
||||||
|
|
||||||
statisticalButton = new TextButton("Statistical",
|
statisticalButton = new TextButton("Statistical",
|
||||||
TabularDataResources.INSTANCE.statistical32());
|
TabularDataResources.INSTANCE.statistical32());
|
||||||
|
statisticalButton.disable();
|
||||||
statisticalButton.setScale(ButtonScale.LARGE);
|
statisticalButton.setScale(ButtonScale.LARGE);
|
||||||
statisticalButton.setIconAlign(IconAlign.TOP);
|
statisticalButton.setIconAlign(IconAlign.TOP);
|
||||||
statisticalButton.setToolTip("Statistical");
|
statisticalButton.setToolTip("Statistical");
|
||||||
|
@ -364,8 +366,8 @@ public class AnalyseToolBar {
|
||||||
statisticalButton.addSelectHandler(new SelectHandler() {
|
statisticalButton.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
// eventBus.fireEvent(new
|
eventBus.fireEvent(new
|
||||||
// RibbonEvent(RibbonType.TABLEAGGREAGETE));
|
RibbonEvent(RibbonType.STATISTICAL));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -374,6 +376,7 @@ public class AnalyseToolBar {
|
||||||
|
|
||||||
spreadButton = new TextButton("SPREAD",
|
spreadButton = new TextButton("SPREAD",
|
||||||
TabularDataResources.INSTANCE.cog32());
|
TabularDataResources.INSTANCE.cog32());
|
||||||
|
spreadButton.disable();
|
||||||
spreadButton.setScale(ButtonScale.LARGE);
|
spreadButton.setScale(ButtonScale.LARGE);
|
||||||
spreadButton.setIconAlign(IconAlign.TOP);
|
spreadButton.setIconAlign(IconAlign.TOP);
|
||||||
spreadButton.setToolTip("SPREAD");
|
spreadButton.setToolTip("SPREAD");
|
||||||
|
@ -448,18 +451,22 @@ public class AnalyseToolBar {
|
||||||
switch (uiStateType) {
|
switch (uiStateType) {
|
||||||
case START:
|
case START:
|
||||||
gisButton.disable();
|
gisButton.disable();
|
||||||
|
statisticalButton.disable();
|
||||||
break;
|
break;
|
||||||
case TR_CLOSE:
|
case TR_CLOSE:
|
||||||
case TR_READONLY:
|
case TR_READONLY:
|
||||||
gisButton.disable();
|
gisButton.disable();
|
||||||
|
statisticalButton.disable();
|
||||||
break;
|
break;
|
||||||
case TR_OPEN:
|
case TR_OPEN:
|
||||||
case TABLEUPDATE:
|
case TABLEUPDATE:
|
||||||
case TABLECURATION:
|
case TABLECURATION:
|
||||||
gisButton.enable();
|
gisButton.enable();
|
||||||
|
statisticalButton.enable();
|
||||||
break;
|
break;
|
||||||
case WIZARD_OPEN:
|
case WIZARD_OPEN:
|
||||||
gisButton.disable();
|
gisButton.disable();
|
||||||
|
statisticalButton.disable();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
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 name='org.gcube.portlets.user.td.unionwizardwidget.UnionWizardTD' />
|
||||||
<inherits name='org.gcube.portlets.user.td.mapwidget.MapWidgetTD' />
|
<inherits name='org.gcube.portlets.user.td.mapwidget.MapWidgetTD' />
|
||||||
|
<inherits name='org.gcube.portlets.user.td.statisticalwidget.StatisticalWidget' />
|
||||||
|
|
||||||
|
|
||||||
<inherits
|
<inherits
|
||||||
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
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 name='org.gcube.portlets.user.td.unionwizardwidget.UnionWizardTD' />
|
||||||
<inherits name='org.gcube.portlets.user.td.mapwidget.MapWidgetTD' />
|
<inherits name='org.gcube.portlets.user.td.mapwidget.MapWidgetTD' />
|
||||||
|
<inherits name='org.gcube.portlets.user.td.statisticalwidget.StatisticalWidget' />
|
||||||
|
|
||||||
<inherits
|
<inherits
|
||||||
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
|
||||||
|
|
Loading…
Reference in New Issue