diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
index 8ca157a..da437ae 100644
--- a/.settings/org.eclipse.wst.common.component
+++ b/.settings/org.eclipse.wst.common.component
@@ -4,9 +4,6 @@
-
- uses
-
uses
@@ -28,6 +25,9 @@
uses
+
+ uses
+
diff --git a/pom.xml b/pom.xml
index bf22d09..6cf4c3e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,32 +56,6 @@
provided
-
-
- org.gcube.portlets.user
- tabular-data-information
- 1.0.0-SNAPSHOT
-
-
-
-
- com.allen-sauer.gwt.log
- gwt-log
-
-
-
- org.slf4j
- slf4j-api
- compile
-
-
-
- ch.qos.logback
- logback-classic
- 1.0.1
- runtime
-
-
javax.portlet
@@ -114,7 +88,6 @@
workspace-tree-widget
-
com.extjs.gxt
gxt
@@ -200,7 +173,39 @@
[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)
+
+
+ org.gcube.portlets.user
+ tabular-data-information
+ 1.0.0-SNAPSHOT
+
+
+
+
+ com.allen-sauer.gwt.log
+ gwt-log
+
+
+ org.slf4j
+ slf4j-api
+ compile
+
+
+
+ ch.qos.logback
+ logback-classic
+ 1.0.1
+ runtime
+
+
+
+
+ junit
+ junit
+ 4.8.1
+ test
+
@@ -218,6 +223,7 @@
compile
+ test
@@ -236,6 +242,25 @@
${webappDirectory}
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.16
+
+ false
+
+
+
+
+ org.apache.maven.surefire
+ surefire-junit47
+ 2.16
+
+
+
+
diff --git a/src/main/java/org/gcube/portlets/user/td/client/resource/TabularDataResources.java b/src/main/java/org/gcube/portlets/user/td/client/resource/TabularDataResources.java
index b070b5a..936566c 100644
--- a/src/main/java/org/gcube/portlets/user/td/client/resource/TabularDataResources.java
+++ b/src/main/java/org/gcube/portlets/user/td/client/resource/TabularDataResources.java
@@ -143,5 +143,29 @@ public interface TabularDataResources extends ClientBundle {
@Source("arrow-undo-all.png")
ImageResource discardAll();
+ @Source("column-type_32.png")
+ ImageResource columnType32();
+
+ @Source("column-type.png")
+ ImageResource columnType();
+
+ @Source("column-label_32.png")
+ ImageResource columnLabel32();
+
+ @Source("column-label.png")
+ ImageResource columnLabel();
+
+ @Source("column-values_32.png")
+ ImageResource columnValues32();
+
+ @Source("column-values.png")
+ ImageResource columnValues();
+
+ @Source("column_32.png")
+ ImageResource column32();
+
+ @Source("column.png")
+ ImageResource column();
+
}
diff --git a/src/main/java/org/gcube/portlets/user/td/client/ribbon/ChartsToolBar.java b/src/main/java/org/gcube/portlets/user/td/client/ribbon/ChartsToolBar.java
index f37025c..8522344 100644
--- a/src/main/java/org/gcube/portlets/user/td/client/ribbon/ChartsToolBar.java
+++ b/src/main/java/org/gcube/portlets/user/td/client/ribbon/ChartsToolBar.java
@@ -56,7 +56,7 @@ public class ChartsToolBar {
ButtonGroup basicGroup = new ButtonGroup();
basicGroup.setHeight("78px");
basicGroup.setStyleName("margin:2px");
- basicGroup.setHeadingText("Basic");
+ basicGroup.setHeadingText("Charts");
toolBar.add(basicGroup);
FlexTable basicLayout = new FlexTable();
diff --git a/src/main/java/org/gcube/portlets/user/td/client/ribbon/FormulasToolBar.java b/src/main/java/org/gcube/portlets/user/td/client/ribbon/FormulasToolBar.java
index a49e157..8b2120d 100644
--- a/src/main/java/org/gcube/portlets/user/td/client/ribbon/FormulasToolBar.java
+++ b/src/main/java/org/gcube/portlets/user/td/client/ribbon/FormulasToolBar.java
@@ -28,13 +28,20 @@ public class FormulasToolBar {
protected EventBus eventBus;
protected ToolBar toolBar;
- //Basic
+ //Table
protected TextButton filterButton;
protected TextButton unionButton;
protected TextButton denormalizeButton;
protected TextButton groupButton;
protected TextButton aggregateButton;
+ //Column
+ protected TextButton modifyLabelButton;
+ protected TextButton modifyColumnTypeButton;
+ protected TextButton modifyColumnValuesButton;
+
+
+
//History
protected TextButton historyButton;
protected TextButton discardButton;
@@ -60,7 +67,7 @@ public class FormulasToolBar {
ButtonGroup basicGroup = new ButtonGroup();
basicGroup.setHeight("78px");
basicGroup.setStyleName("margin:2px");
- basicGroup.setHeadingText("Basic");
+ basicGroup.setHeadingText("Table");
toolBar.add(basicGroup);
FlexTable basicLayout = new FlexTable();
@@ -81,8 +88,7 @@ public class FormulasToolBar {
basicLayout.setWidget(0, 0, filterButton);
basicLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
- cleanCells(basicLayout.getElement());
-
+
unionButton = new TextButton("Union", TabularDataResources.INSTANCE.union32());
unionButton.setScale(ButtonScale.LARGE);
unionButton.setIconAlign(IconAlign.TOP);
@@ -98,8 +104,8 @@ public class FormulasToolBar {
basicLayout.setWidget(0, 1, unionButton);
basicLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
- cleanCells(basicLayout.getElement());
-
+
+
denormalizeButton = new TextButton("Denormalize", TabularDataResources.INSTANCE.denormalize32());
denormalizeButton.setScale(ButtonScale.LARGE);
denormalizeButton.setIconAlign(IconAlign.TOP);
@@ -115,9 +121,9 @@ public class FormulasToolBar {
basicLayout.setWidget(0, 2, denormalizeButton);
basicLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
- cleanCells(basicLayout.getElement());
+
-
+ /*
groupButton = new TextButton("Group", TabularDataResources.INSTANCE.group32());
groupButton.setScale(ButtonScale.LARGE);
groupButton.setIconAlign(IconAlign.TOP);
@@ -131,10 +137,10 @@ public class FormulasToolBar {
}
});
- basicLayout.setWidget(0, 3, groupButton);
- basicLayout.getFlexCellFormatter().setRowSpan(0, 3, 2);
+ basicLayout.setWidget(0, 2, groupButton);
+ basicLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
cleanCells(basicLayout.getElement());
-
+ */
aggregateButton = new TextButton("Aggregate", TabularDataResources.INSTANCE.aggregate32());
aggregateButton.setScale(ButtonScale.LARGE);
aggregateButton.setIconAlign(IconAlign.TOP);
@@ -148,11 +154,73 @@ public class FormulasToolBar {
}
});
- basicLayout.setWidget(0, 4, aggregateButton);
- basicLayout.getFlexCellFormatter().setRowSpan(0, 4, 2);
+ basicLayout.setWidget(0, 3, aggregateButton);
+ basicLayout.getFlexCellFormatter().setRowSpan(0, 3, 2);
cleanCells(basicLayout.getElement());
+ //Column
+ ButtonGroup columnGroup = new ButtonGroup();
+ columnGroup.setHeight("78px");
+ columnGroup.setStyleName("margin:2px");
+ columnGroup.setHeadingText("Column");
+ toolBar.add(columnGroup);
+
+ FlexTable columnLayout = new FlexTable();
+ columnGroup.add(columnLayout);
+
+ modifyLabelButton = new TextButton("Label", TabularDataResources.INSTANCE.columnLabel32());
+ modifyLabelButton.setScale(ButtonScale.LARGE);
+ modifyLabelButton.setIconAlign(IconAlign.TOP);
+ modifyLabelButton.setToolTip("Changes the column label");
+ modifyLabelButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
+ modifyLabelButton.addSelectHandler(new SelectHandler() {
+
+ @Override
+ public void onSelect(SelectEvent event) {
+ //eventBus.fireEvent(new ImportTableEvent(ImportTableType.JSON));
+ }
+ });
+
+ columnLayout.setWidget(0, 0, modifyLabelButton);
+ columnLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
+
+
+ modifyColumnTypeButton = new TextButton("Type", TabularDataResources.INSTANCE.columnType32());
+ modifyColumnTypeButton.setScale(ButtonScale.LARGE);
+ modifyColumnTypeButton.setIconAlign(IconAlign.TOP);
+ modifyColumnTypeButton.setToolTip("Changes the column type");
+ modifyColumnTypeButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
+ modifyColumnTypeButton.addSelectHandler(new SelectHandler() {
+
+ @Override
+ public void onSelect(SelectEvent event) {
+ //eventBus.fireEvent(new ImportTableEvent(ImportTableType.JSON));
+ }
+ });
+
+ columnLayout.setWidget(0, 1, modifyColumnTypeButton);
+ columnLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
+
+ modifyColumnValuesButton = new TextButton("Values", TabularDataResources.INSTANCE.columnValues32());
+ modifyColumnValuesButton.setScale(ButtonScale.LARGE);
+ modifyColumnValuesButton.setIconAlign(IconAlign.TOP);
+ modifyColumnValuesButton.setToolTip("Changes the column values");
+ modifyColumnValuesButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
+ modifyColumnValuesButton.addSelectHandler(new SelectHandler() {
+
+ @Override
+ public void onSelect(SelectEvent event) {
+ //eventBus.fireEvent(new ImportTableEvent(ImportTableType.JSON));
+ }
+ });
+
+ columnLayout.setWidget(0, 2, modifyColumnValuesButton);
+ columnLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
+
+ cleanCells(columnLayout.getElement());
+
+
//History
ButtonGroup historyGroup = new ButtonGroup();
historyGroup.setHeight("78px");
@@ -178,9 +246,7 @@ public class FormulasToolBar {
historyLayout.setWidget(0, 0, historyButton);
historyLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
- cleanCells(historyLayout.getElement());
-
-
+
discardButton = new TextButton("Discard", TabularDataResources.INSTANCE.discard());
discardButton.setToolTip("Discard the last operation");
@@ -207,6 +273,9 @@ public class FormulasToolBar {
cleanCells(historyLayout.getElement());
+
+
+
}
protected void cleanCells(Element elem) {
diff --git a/src/main/java/org/gcube/portlets/user/td/client/ribbon/TabularDataRibbon.java b/src/main/java/org/gcube/portlets/user/td/client/ribbon/TabularDataRibbon.java
index 538fdce..56e4bc3 100644
--- a/src/main/java/org/gcube/portlets/user/td/client/ribbon/TabularDataRibbon.java
+++ b/src/main/java/org/gcube/portlets/user/td/client/ribbon/TabularDataRibbon.java
@@ -29,7 +29,7 @@ public class TabularDataRibbon {
VerticalLayoutContainer con = new VerticalLayoutContainer();
con.setHeight("94px");
con.add(fileToolBar.getToolBar(), new VerticalLayoutData(1, -1));
- ribbon.add(con, "File");
+ ribbon.add(con, "Home");
reviewToolBar = new ReviewToolBar(eventBus);
con = new VerticalLayoutContainer();
@@ -41,14 +41,14 @@ public class TabularDataRibbon {
con = new VerticalLayoutContainer();
con.setHeight("94px");
con.add(formulasToolBar.getToolBar(), new VerticalLayoutData(1, -1));
- ribbon.add(con, "Formulas");
+ ribbon.add(con, "Modify");
chartsToolBar = new ChartsToolBar(eventBus);
con = new VerticalLayoutContainer();
con.setHeight("94px");
con.add(chartsToolBar.getToolBar(), new VerticalLayoutData(1, -1));
- ribbon.add(con, "Charts");
+ ribbon.add(con, "Applications");
}
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column-label.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-label.png
new file mode 100644
index 0000000..77bcec4
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-label.png differ
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column-label_32.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-label_32.png
new file mode 100644
index 0000000..6a3442f
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-label_32.png differ
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column-type.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-type.png
new file mode 100644
index 0000000..77edd7c
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-type.png differ
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column-type_32.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-type_32.png
new file mode 100644
index 0000000..584f112
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-type_32.png differ
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column-values.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-values.png
new file mode 100644
index 0000000..f1dfcb9
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-values.png differ
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column-values_32.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-values_32.png
new file mode 100644
index 0000000..4a05a15
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column-values_32.png differ
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column.png
new file mode 100644
index 0000000..6cbe5cf
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column.png differ
diff --git a/src/main/resources/org/gcube/portlets/user/td/client/resource/column_32.png b/src/main/resources/org/gcube/portlets/user/td/client/resource/column_32.png
new file mode 100644
index 0000000..7a65f22
Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/client/resource/column_32.png differ
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index 1a8abbf..0ea354b 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -29,11 +29,6 @@
org.gcube.portlets.user.td.gxtservice.server.TDGXTServiceImpl
-
-
- TDOpenService
- org.gcube.portlets.user.td.open.server.TDOpenServiceImpl
-
@@ -127,13 +122,6 @@
-
-
- TDOpenService
- /tabulardataportlet/TDOpenService
-
-
-
SDMXImportWizardService