Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@86832 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8cd37ce1a4
commit
3c220bb7cc
|
@ -0,0 +1,37 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" output="target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry excluding="**" kind="src" output="target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="output" path="target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||||
|
</classpath>
|
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>tabular-data-portlet</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||||
|
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
|
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||||
|
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
|
||||||
|
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" path="src/main/webapp"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="hide" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||||
|
<classpathentry kind="output" path=""/>
|
||||||
|
</classpath>
|
|
@ -0,0 +1,4 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
filesCopiedToWebInfLib=
|
||||||
|
googleCloudSqlEnabled=false
|
||||||
|
localDevMySqlEnabled=true
|
|
@ -0,0 +1,5 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
jarsExcludedFromWebInfLib=
|
||||||
|
lastWarOutDir=/home/giancarlo/workspace/tabular-data-portlet/target/tabular-data-portlet-2.0.0-SNAPSHOT
|
||||||
|
warSrcDir=src/main/webapp
|
||||||
|
warSrcDirIsOutput=false
|
|
@ -0,0 +1,2 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
entryPointModules=
|
|
@ -0,0 +1,6 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding//src/main/resources=UTF-8
|
||||||
|
encoding//src/test/java=UTF-8
|
||||||
|
encoding//src/test/resources=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
|
@ -0,0 +1,8 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.6
|
|
@ -0,0 +1,4 @@
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -0,0 +1,50 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
|
<wb-module deploy-name="tabular-data-portlet">
|
||||||
|
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||||
|
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||||
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||||
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||||
|
<dependent-module archiveName="tabular-data-widget-td-source-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widget-td-source/tabular-data-widget-td-source">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-widget-2.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widget/tabular-data-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-widget-common-event-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widget-common-event/tabular-data-widget-common-event">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-csv-import-widget-2.0.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.0.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.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-open-widget/tabular-data-open-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-csv-export-widget-1.0.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>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-sdmx-export-widget-1.0.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-gwt-service-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-gwt-service/tabular-data-gwt-service">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-wizard-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-wizard-widget/tabular-data-wizard-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-toolbox-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-toolbox-widget/tabular-data-toolbox-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-information-widget-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-information-widget/tabular-data-information-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="tabular-data-metadata-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-metadata-widget/tabular-data-metadata-widget">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<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"/>
|
||||||
|
</wb-module>
|
||||||
|
</project-modules>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<faceted-project>
|
||||||
|
<fixed facet="wst.jsdt.web"/>
|
||||||
|
<installed facet="java" version="1.6"/>
|
||||||
|
<installed facet="jst.web" version="2.3"/>
|
||||||
|
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||||
|
</faceted-project>
|
|
@ -0,0 +1 @@
|
||||||
|
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
|
@ -0,0 +1 @@
|
||||||
|
Window
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Resource>
|
||||||
|
<ID></ID>
|
||||||
|
<Type>Service</Type>
|
||||||
|
<Profile>
|
||||||
|
<Description>tabular-data-portlet manages tabular data</Description>
|
||||||
|
<Class>PortletsUser</Class>
|
||||||
|
<Name>tabular-data-portlet</Name>
|
||||||
|
<Version>1.0.0</Version>
|
||||||
|
<Packages>
|
||||||
|
<Software>
|
||||||
|
<Description>tabular-data-portlet manages tabular data</Description>
|
||||||
|
<Name>tabular-data-portlet</Name>
|
||||||
|
<Version>2.0.0-SNAPSHOT</Version>
|
||||||
|
<MavenCoordinates>
|
||||||
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
<artifactId>tabular-data-portlet</artifactId>
|
||||||
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
|
</MavenCoordinates>
|
||||||
|
<Type>webapplication</Type>
|
||||||
|
<Files>
|
||||||
|
<File>tabular-data-portlet-2.0.0-SNAPSHOT.war</File>
|
||||||
|
</Files>
|
||||||
|
</Software>
|
||||||
|
</Packages>
|
||||||
|
</Profile>
|
||||||
|
</Resource>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
gCube System - License
|
||||||
|
------------------------------------------------------------
|
||||||
|
|
||||||
|
The gCube/gCore software is licensed as Free Open Source software conveying to the EUPL (http://ec.europa.eu/idabc/eupl).
|
||||||
|
The software and documentation is provided by its authors/distributors "as is" and no expressed or
|
||||||
|
implied warranty is given for its use, quality or fitness for a particular case.
|
|
@ -0,0 +1 @@
|
||||||
|
Giancarlo Panichi (giancarlo.panichi@isti.cnr.it), CNR Pisa, Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"
|
|
@ -0,0 +1,40 @@
|
||||||
|
The gCube System - tabular-data-portlet
|
||||||
|
------------------------------------------------------------
|
||||||
|
|
||||||
|
This work has been supported by the following European projects: iMarine (FP7-INFRASTRUCTURES-2011-2)
|
||||||
|
|
||||||
|
Authors
|
||||||
|
-------
|
||||||
|
|
||||||
|
Giancarlo Panichi (giancarlo.panichi@isti.cnr.it), CNR Pisa,
|
||||||
|
Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"
|
||||||
|
|
||||||
|
|
||||||
|
Version and Release Date
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
v. 2.0.0-SNAPSHOT (2013-10-18)
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
tabular-data-portlet manages tabular data
|
||||||
|
|
||||||
|
Download information
|
||||||
|
--------------------
|
||||||
|
Source code URL: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
-------------
|
||||||
|
|
||||||
|
tabular-data-portlet manages tabular data
|
||||||
|
|
||||||
|
|
||||||
|
Licensing
|
||||||
|
---------
|
||||||
|
|
||||||
|
This software is licensed under the terms you may find in the file named "LICENSE" in this directory.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<ReleaseNotes>
|
||||||
|
<Changeset component="org.gcube.portlets.user.tabular-data-portlet.1-0-0"
|
||||||
|
date="2013-10-18">
|
||||||
|
<Change>First Release</Change>
|
||||||
|
</Changeset>
|
||||||
|
</ReleaseNotes>
|
|
@ -0,0 +1 @@
|
||||||
|
https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet
|
20
pom.xml
20
pom.xml
|
@ -164,14 +164,14 @@
|
||||||
<artifactId>csv4j</artifactId>
|
<artifactId>csv4j</artifactId>
|
||||||
<version>[1.2.0-SNAPSHOT, 2.0.0-common)</version>
|
<version>[1.2.0-SNAPSHOT, 2.0.0-common)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- tabular-data-widget-common-event -->
|
<!-- tabular-data-widget-common-event -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
<artifactId>tabular-data-widget-common-event</artifactId>
|
<artifactId>tabular-data-widget-common-event</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- tabular-data-csv-import-widget -->
|
<!-- tabular-data-csv-import-widget -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
<artifactId>tabular-data-csv-export-widget</artifactId>
|
<artifactId>tabular-data-csv-export-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-sdmx-export-widget -->
|
<!-- tabular-data-sdmx-export-widget -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
@ -207,12 +207,7 @@
|
||||||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--tabular-data-information-widget -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
|
||||||
<artifactId>tabular-data-information-widget</artifactId>
|
|
||||||
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- tabular-data-gwt-service -->
|
<!-- tabular-data-gwt-service -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -228,6 +223,13 @@
|
||||||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- tabular-data-toolbox-widget -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
|
<artifactId>tabular-data-toolbox-widget</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- LOGGING -->
|
<!-- LOGGING -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.allen-sauer.gwt.log</groupId>
|
<groupId>com.allen-sauer.gwt.log</groupId>
|
||||||
|
|
|
@ -3,21 +3,18 @@
|
||||||
*/
|
*/
|
||||||
package org.gcube.portlets.user.td.client;
|
package org.gcube.portlets.user.td.client;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
|
|
||||||
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
|
|
||||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardListener;
|
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent;
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType;
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.UIStateEvent;
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.UIStateType;
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
|
||||||
import org.gcube.portlets.user.td.csvexportwidget.client.CSVExportWizardTD;
|
import org.gcube.portlets.user.td.csvexportwidget.client.CSVExportWizardTD;
|
||||||
import org.gcube.portlets.user.td.csvimportwidget.client.CSVImportWizardTD;
|
import org.gcube.portlets.user.td.csvimportwidget.client.CSVImportWizardTD;
|
||||||
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||||
import org.gcube.portlets.user.td.informationwidget.client.TabularResourceProperties;
|
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
|
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
|
||||||
|
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
|
||||||
|
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.UIStateEvent;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.type.UIStateType;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardListener;
|
||||||
import org.gcube.portlets.user.tdw.client.TabularData;
|
import org.gcube.portlets.user.tdw.client.TabularData;
|
||||||
import org.gcube.portlets.user.tdw.shared.model.TableId;
|
import org.gcube.portlets.user.tdw.shared.model.TableId;
|
||||||
|
|
||||||
|
@ -25,17 +22,12 @@ import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.gwt.core.client.RunAsyncCallback;
|
import com.google.gwt.core.client.RunAsyncCallback;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
import com.google.gwt.user.client.ui.Widget;
|
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.google.web.bindery.event.shared.SimpleEventBus;
|
import com.google.web.bindery.event.shared.SimpleEventBus;
|
||||||
import com.sencha.gxt.widget.core.client.ContentPanel;
|
import com.sencha.gxt.widget.core.client.ContentPanel;
|
||||||
import com.sencha.gxt.widget.core.client.TabItemConfig;
|
|
||||||
import com.sencha.gxt.widget.core.client.TabPanel;
|
|
||||||
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
||||||
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData;
|
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData;
|
||||||
import com.sencha.gxt.widget.core.client.event.BeforeCloseEvent;
|
|
||||||
import com.sencha.gxt.widget.core.client.event.HideEvent;
|
import com.sencha.gxt.widget.core.client.event.HideEvent;
|
||||||
import com.sencha.gxt.widget.core.client.event.BeforeCloseEvent.BeforeCloseHandler;
|
|
||||||
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
||||||
import com.sencha.gxt.widget.core.client.info.Info;
|
import com.sencha.gxt.widget.core.client.info.Info;
|
||||||
|
|
||||||
|
@ -51,12 +43,8 @@ public class TabularDataController {
|
||||||
protected SimpleEventBus eventBus;
|
protected SimpleEventBus eventBus;
|
||||||
protected TabularData tabularData;
|
protected TabularData tabularData;
|
||||||
protected UIStateType uiState = UIStateType.START;
|
protected UIStateType uiState = UIStateType.START;
|
||||||
protected UIProperties uiProperties = UIProperties.CLOSED;
|
|
||||||
|
|
||||||
protected ContentPanel functionalityPanel;
|
protected ContentPanel toolBoxPanel;
|
||||||
protected TabPanel functionalityTab;
|
|
||||||
protected int indexFunctionalityTab = 0;
|
|
||||||
protected TabularResourceProperties trProperties;
|
|
||||||
protected BorderLayoutData eastData;
|
protected BorderLayoutData eastData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -85,21 +73,15 @@ public class TabularDataController {
|
||||||
this.tabularData = tabularData;
|
this.tabularData = tabularData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ContentPanel getFunctionalityPanel() {
|
public ContentPanel getToolBoxPanel() {
|
||||||
return functionalityPanel;
|
return toolBoxPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFunctionalityPanel(ContentPanel functionalityPanel) {
|
public void setToolBoxPanel(ContentPanel toolBoxPanel) {
|
||||||
this.functionalityPanel = functionalityPanel;
|
this.toolBoxPanel = toolBoxPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TabPanel getFunctionalityTab() {
|
|
||||||
return functionalityTab;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFunctionalityTab(TabPanel functionalityTab) {
|
|
||||||
this.functionalityTab = functionalityTab;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BorderLayoutData getEastData() {
|
public BorderLayoutData getEastData() {
|
||||||
return eastData;
|
return eastData;
|
||||||
|
@ -157,26 +139,22 @@ public class TabularDataController {
|
||||||
UIStateEvent uiStateEvent=new UIStateEvent(UIStateType.TR_OPEN);
|
UIStateEvent uiStateEvent=new UIStateEvent(UIStateType.TR_OPEN);
|
||||||
uiStateEvent.setTrId(tabularResourceId);
|
uiStateEvent.setTrId(tabularResourceId);
|
||||||
eventBus.fireEvent(uiStateEvent);
|
eventBus.fireEvent(uiStateEvent);
|
||||||
updateUIProperties();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
protected void updateUIProperties(){
|
protected void updateUIProperties(){
|
||||||
if (uiProperties == UIProperties.OPENED) {
|
if (uiToolBox == UIToolBox.OPENED) {
|
||||||
trProperties.update();
|
trProperties.update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
protected void closeTabularResource() {
|
protected void closeTabularResource() {
|
||||||
if (uiState == UIStateType.TR_OPEN) {
|
if (uiState == UIStateType.TR_OPEN) {
|
||||||
tabularData.closeTable();
|
tabularData.closeTable();
|
||||||
uiState = UIStateType.TR_CLOSE;
|
uiState = UIStateType.TR_CLOSE;
|
||||||
eventBus.fireEvent(new UIStateEvent(UIStateType.TR_CLOSE));
|
eventBus.fireEvent(new UIStateEvent(UIStateType.TR_CLOSE));
|
||||||
if (uiProperties == UIProperties.OPENED) {
|
|
||||||
functionalityPanel.collapse();
|
|
||||||
functionalityPanel.disable();
|
|
||||||
uiProperties = UIProperties.CLOSED;
|
|
||||||
functionalityTab.remove(trProperties);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +196,6 @@ public class TabularDataController {
|
||||||
deleteTabularResource();
|
deleteTabularResource();
|
||||||
break;
|
break;
|
||||||
case PROPERTIES:
|
case PROPERTIES:
|
||||||
openFunctionalityProperties();
|
|
||||||
break;
|
break;
|
||||||
case IMPORTSDMX:
|
case IMPORTSDMX:
|
||||||
openSDMXImportWizard();
|
openSDMXImportWizard();
|
||||||
|
@ -245,55 +222,28 @@ public class TabularDataController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void openFunctionalityProperties() {
|
/*
|
||||||
|
protected void openToolBox() {
|
||||||
if (uiState == UIStateType.TR_OPEN) {
|
if (uiState == UIStateType.TR_OPEN) {
|
||||||
if (uiProperties == UIProperties.OPENED) {
|
if (uiToolBox == UIToolBox.OPENED) {
|
||||||
functionalityPanel.collapse();
|
toolBoxPanel.collapse();
|
||||||
functionalityPanel.disable();
|
toolBoxPanel.disable();
|
||||||
uiProperties = UIProperties.CLOSED;
|
|
||||||
functionalityTab.remove(trProperties);
|
uiToolBox = UIToolBox.CLOSED;
|
||||||
|
eventBus.fireEvent(new UIStateEvent(UIStateType.TOOLBOX_CLOSE));
|
||||||
|
toolBox.remove(trProperties);
|
||||||
Info.display("Properties", "Closed");
|
Info.display("Properties", "Closed");
|
||||||
} else {
|
} else {
|
||||||
TabItemConfig propertiesItemConf = new TabItemConfig(
|
eventBus.fireEvent(new UIStateEvent(UIStateType.TOOLBOX_OPEN));
|
||||||
"Properties", true);
|
toolBoxPanel.enable();
|
||||||
|
toolBoxPanel.expand();
|
||||||
trProperties = new TabularResourceProperties("TRProperties",
|
uiToolBox = UIToolBox.OPENED;
|
||||||
eventBus);
|
|
||||||
trProperties.setHeaderVisible(false);
|
|
||||||
functionalityTab.add(trProperties, propertiesItemConf);
|
|
||||||
functionalityTab
|
|
||||||
.addBeforeCloseHandler(new BeforeCloseHandler<Widget>() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onBeforeClose(
|
|
||||||
BeforeCloseEvent<Widget> event) {
|
|
||||||
if (functionalityTab.getWidgetCount() == 1) {
|
|
||||||
functionalityPanel.disable();
|
|
||||||
functionalityPanel.collapse();
|
|
||||||
uiProperties = UIProperties.CLOSED;
|
|
||||||
functionalityTab.remove(trProperties);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Label taskLabel = new Label("Task Properties");
|
|
||||||
* taskLabel.addStyleName("pad-text"); functionalityTab
|
|
||||||
* .add(taskLabel, new TabItemConfig("Task", true));
|
|
||||||
*/
|
|
||||||
functionalityTab.setActiveWidget(functionalityTab.getWidget(0));
|
|
||||||
|
|
||||||
functionalityPanel.enable();
|
|
||||||
functionalityPanel.expand();
|
|
||||||
uiProperties = UIProperties.OPENED;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Info.display("Properties", "No table open");
|
Info.display("Properties", "No table open");
|
||||||
}
|
}
|
||||||
};
|
};*/
|
||||||
|
|
||||||
protected void openSDMXImportWizard() {
|
protected void openSDMXImportWizard() {
|
||||||
GWT.runAsync(new RunAsyncCallback() {
|
GWT.runAsync(new RunAsyncCallback() {
|
||||||
|
@ -353,7 +303,6 @@ public class TabularDataController {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void completed(TRId id) {
|
public void completed(TRId id) {
|
||||||
updateUIProperties();
|
|
||||||
resumeUIState();
|
resumeUIState();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -394,7 +343,6 @@ public class TabularDataController {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void completed(TRId id) {
|
public void completed(TRId id) {
|
||||||
updateUIProperties();
|
|
||||||
resumeUIState();
|
resumeUIState();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
||||||
import org.gcube.portlets.user.td.client.ribbon.TabularDataRibbon;
|
import org.gcube.portlets.user.td.client.ribbon.TabularDataRibbon;
|
||||||
import org.gcube.portlets.user.td.client.rpc.TabularDataService;
|
import org.gcube.portlets.user.td.client.rpc.TabularDataService;
|
||||||
import org.gcube.portlets.user.td.client.rpc.TabularDataServiceAsync;
|
import org.gcube.portlets.user.td.client.rpc.TabularDataServiceAsync;
|
||||||
|
import org.gcube.portlets.user.td.toolboxwidget.client.ToolBoxPanel;
|
||||||
import org.gcube.portlets.user.tdw.client.TabularData;
|
import org.gcube.portlets.user.tdw.client.TabularData;
|
||||||
import org.gcube.portlets.user.tdw.client.TabularDataGridPanel;
|
import org.gcube.portlets.user.tdw.client.TabularDataGridPanel;
|
||||||
import org.gcube.portlets.user.tdw.client.config.Row;
|
import org.gcube.portlets.user.tdw.client.config.Row;
|
||||||
|
@ -24,7 +25,6 @@ import com.google.gwt.user.client.ui.RootPanel;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.core.client.Style.SelectionMode;
|
import com.sencha.gxt.core.client.Style.SelectionMode;
|
||||||
import com.sencha.gxt.core.client.util.Margins;
|
import com.sencha.gxt.core.client.util.Margins;
|
||||||
import com.sencha.gxt.widget.core.client.ContentPanel;
|
|
||||||
import com.sencha.gxt.widget.core.client.TabPanel;
|
import com.sencha.gxt.widget.core.client.TabPanel;
|
||||||
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
||||||
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
|
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
|
||||||
|
@ -34,6 +34,7 @@ import com.sencha.gxt.widget.core.client.container.Viewport;
|
||||||
import com.sencha.gxt.widget.core.client.event.HideEvent;
|
import com.sencha.gxt.widget.core.client.event.HideEvent;
|
||||||
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
||||||
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
||||||
|
import com.sencha.gxt.widget.core.client.grid.ColumnModel;
|
||||||
import com.sencha.gxt.widget.core.client.info.Info;
|
import com.sencha.gxt.widget.core.client.info.Info;
|
||||||
import com.sencha.gxt.widget.core.client.menu.Item;
|
import com.sencha.gxt.widget.core.client.menu.Item;
|
||||||
import com.sencha.gxt.widget.core.client.menu.Menu;
|
import com.sencha.gxt.widget.core.client.menu.Menu;
|
||||||
|
@ -71,8 +72,7 @@ public class TabularDataPortlet implements EntryPoint {
|
||||||
|
|
||||||
// Private TabularData
|
// Private TabularData
|
||||||
private static TabularData tabularData;
|
private static TabularData tabularData;
|
||||||
private static ContentPanel functionalityPanel;
|
private static ToolBoxPanel toolBoxPanel;
|
||||||
private static TabPanel functionalityTab;
|
|
||||||
private static BorderLayoutData eastData;
|
private static BorderLayoutData eastData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -139,19 +139,10 @@ public class TabularDataPortlet implements EntryPoint {
|
||||||
MarginData gridData = new MarginData();
|
MarginData gridData = new MarginData();
|
||||||
mainPanelLayout.setCenterWidget(gridPanel, gridData);
|
mainPanelLayout.setCenterWidget(gridPanel, gridData);
|
||||||
|
|
||||||
// Functionality Panel
|
// ToolBox Panel
|
||||||
functionalityPanel = new ContentPanel();
|
toolBoxPanel = new ToolBoxPanel("ToolBoxPanel",eventBus);
|
||||||
functionalityPanel.setWidth(310);
|
|
||||||
functionalityPanel.setHeaderVisible(false);
|
|
||||||
functionalityPanel.setResize(true);
|
|
||||||
|
|
||||||
functionalityTab = new TabPanel();
|
|
||||||
functionalityTab.setAnimScroll(true);
|
|
||||||
functionalityTab.setTabScroll(true);
|
|
||||||
functionalityTab.setCloseContextMenu(true);
|
|
||||||
|
|
||||||
functionalityPanel.add(functionalityTab);
|
|
||||||
|
|
||||||
eastData = new BorderLayoutData(310);
|
eastData = new BorderLayoutData(310);
|
||||||
eastData.setCollapsible(true);
|
eastData.setCollapsible(true);
|
||||||
eastData.setSplit(false);
|
eastData.setSplit(false);
|
||||||
|
@ -160,16 +151,17 @@ public class TabularDataPortlet implements EntryPoint {
|
||||||
eastData.setMargins(new Margins(0, 5, 0, 5));
|
eastData.setMargins(new Margins(0, 5, 0, 5));
|
||||||
eastData.setCollapseHidden(true);
|
eastData.setCollapseHidden(true);
|
||||||
|
|
||||||
mainPanelLayout.setEastWidget(functionalityPanel, eastData);
|
mainPanelLayout.setEastWidget(toolBoxPanel, eastData);
|
||||||
functionalityPanel.collapse();
|
toolBoxPanel.collapse();
|
||||||
functionalityPanel.disable();
|
toolBoxPanel.disable();
|
||||||
|
|
||||||
controller.setFunctionalityTab(functionalityTab);
|
|
||||||
controller.setFunctionalityPanel(functionalityPanel);
|
controller.setToolBoxPanel(toolBoxPanel);
|
||||||
controller.setEastData(eastData);
|
controller.setEastData(eastData);
|
||||||
|
|
||||||
bind(mainPanelLayout);
|
bind(mainPanelLayout);
|
||||||
menu(gridPanel);
|
//menu(gridPanel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void bind(BorderLayoutContainer mainWidget) {
|
protected void bind(BorderLayoutContainer mainWidget) {
|
||||||
|
@ -225,23 +217,32 @@ public class TabularDataPortlet implements EntryPoint {
|
||||||
@Override
|
@Override
|
||||||
public void onSelection(SelectionEvent<Item> event) {
|
public void onSelection(SelectionEvent<Item> event) {
|
||||||
Log.debug("Start On Selection");
|
Log.debug("Start On Selection");
|
||||||
Log.debug("gridPanel is: "+gridPanel);
|
Log.debug("gridPanel is: " + gridPanel);
|
||||||
if (gridPanel != null) {
|
if (gridPanel != null) {
|
||||||
List<ColumnConfig<DataRow, ?>> columns= gridPanel.getGrid().getColumnModel().getColumns();
|
ColumnModel<DataRow> columnModel = gridPanel.getGrid()
|
||||||
for(ColumnConfig<DataRow,?> cc:columns){
|
.getColumnModel();
|
||||||
Log.debug("ColumnConfig:"+cc.getHeader());
|
|
||||||
|
List<ColumnConfig<DataRow, ?>> columns = columnModel
|
||||||
|
.getColumns();
|
||||||
|
for (ColumnConfig<DataRow, ?> cc : columns) {
|
||||||
|
Log.debug("ColumnConfig:" + cc.getHeader());
|
||||||
}
|
}
|
||||||
|
|
||||||
DataRowColumnConfig<?> dc=(DataRowColumnConfig<?>)columns.get(0);
|
DataRowColumnConfig<?> dc = (DataRowColumnConfig<?>) columns
|
||||||
Log.debug("DC - Header:"+dc.getHeader());
|
.get(0);
|
||||||
Log.debug("DC - Definition:"+dc.getDefinition().getId()+" Label:"+dc.getDefinition().getLabel()+" Key:"+dc.getDefinition().getKey());
|
|
||||||
|
Log.debug("DC - Header:" + dc.getHeader());
|
||||||
|
Log.debug("DC - Definition:" + dc.getDefinition().getId()
|
||||||
|
+ " Label:" + dc.getDefinition().getLabel()
|
||||||
|
+ " Key:" + dc.getDefinition().getKey());
|
||||||
|
|
||||||
Row row = gridPanel.getSelectedRow();
|
Row row = gridPanel.getSelectedRow();
|
||||||
Log.debug("Retrived row");
|
Log.debug("Retrived row");
|
||||||
|
|
||||||
String rowInfo;
|
String rowInfo;
|
||||||
if (row != null) {
|
if (row != null) {
|
||||||
rowInfo = row.getFieldAsText(dc.getDefinition().getLabel());
|
rowInfo = row.getFieldAsText(dc.getDefinition()
|
||||||
|
.getLabel());
|
||||||
} else {
|
} else {
|
||||||
rowInfo = "no row retrived";
|
rowInfo = "no row retrived";
|
||||||
}
|
}
|
||||||
|
@ -259,6 +260,8 @@ public class TabularDataPortlet implements EntryPoint {
|
||||||
gridPanel.setContextMenu(menu);
|
gridPanel.setContextMenu(menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* private void configPanel(final Portlet panel) {
|
* private void configPanel(final Portlet panel) {
|
||||||
* panel.setCollapsible(true); panel.setAnimCollapse(false);
|
* panel.setCollapsible(true); panel.setAnimCollapse(false);
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
package org.gcube.portlets.user.td.client;
|
|
||||||
|
|
||||||
public enum UIProperties {
|
|
||||||
CLOSED,
|
|
||||||
OPENED;
|
|
||||||
}
|
|
|
@ -16,10 +16,8 @@
|
||||||
<inherits name='org.gcube.portlets.user.td.wizardwidget.Wizard' />
|
<inherits name='org.gcube.portlets.user.td.wizardwidget.Wizard' />
|
||||||
<inherits name='org.gcube.portlets.user.td.widgetcommonevent.WidgetCommonEvent' />
|
<inherits name='org.gcube.portlets.user.td.widgetcommonevent.WidgetCommonEvent' />
|
||||||
|
|
||||||
|
<inherits name='org.gcube.portlets.user.td.toolboxwidget.ToolBox' />
|
||||||
|
<inherits name='org.gcube.portlets.user.td.openwidget.TDOpen' />
|
||||||
<inherits name='org.gcube.portlets.user.td.informationwidget.Information' />
|
|
||||||
<inherits name='org.gcube.portlets.user.td.openwidget.TDOpen' />
|
|
||||||
<inherits name='org.gcube.portlets.user.td.sdmximportwidget.SDMXImportWizardTD' />
|
<inherits name='org.gcube.portlets.user.td.sdmximportwidget.SDMXImportWizardTD' />
|
||||||
<inherits name='org.gcube.portlets.user.td.sdmxexportwidget.SDMXExportWizardTD' />
|
<inherits name='org.gcube.portlets.user.td.sdmxexportwidget.SDMXExportWizardTD' />
|
||||||
<inherits name='org.gcube.portlets.user.td.csvimportwidget.CSVImportWizardTD' />
|
<inherits name='org.gcube.portlets.user.td.csvimportwidget.CSVImportWizardTD' />
|
||||||
|
|
Loading…
Reference in New Issue