Change Service Version 2.0.0-SNAPSHOT

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@86174 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-11-26 12:57:08 +00:00
parent 9a79b4fd29
commit f980c80103
15 changed files with 32 additions and 349 deletions

View File

@ -164,7 +164,14 @@
<artifactId>csv4j</artifactId>
<version>[1.2.0-SNAPSHOT, 2.0.0-common)</version>
</dependency>
<!-- tabular-data-widget-common-event -->
<dependency>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>tabular-data-widget-common-event</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<!-- tabular-data-csv-import-widget -->
<dependency>
<groupId>org.gcube.portlets.user</groupId>

View File

@ -5,18 +5,18 @@ package org.gcube.portlets.user.td.client;
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
import org.gcube.portlets.user.td.wizardwidget.client.WizardListener;
import org.gcube.portlets.user.td.client.event.CloseTabularResourceEvent;
import org.gcube.portlets.user.td.client.event.CloseTabularResourceType;
import org.gcube.portlets.user.td.client.event.ExportTableEvent;
import org.gcube.portlets.user.td.client.event.ExportTableType;
import org.gcube.portlets.user.td.client.event.ImportTableEvent;
import org.gcube.portlets.user.td.client.event.ImportTableType;
import org.gcube.portlets.user.td.client.event.OpenFunctionalityEvent;
import org.gcube.portlets.user.td.client.event.OpenFunctionalityType;
import org.gcube.portlets.user.td.client.event.OpenTabularResourceEvent;
import org.gcube.portlets.user.td.client.event.OpenTabularResourceType;
import org.gcube.portlets.user.td.client.event.UIStateEvent;
import org.gcube.portlets.user.td.client.event.UIStateType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.CloseTabularResourceEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.CloseTabularResourceType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ExportTableEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ExportTableType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ImportTableEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ImportTableType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.OpenFunctionalityEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.OpenFunctionalityType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.OpenTabularResourceEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.OpenTabularResourceType;
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.csvexportwidget.client.CSVExportWizardTD;
import org.gcube.portlets.user.td.csvimportwidget.client.CSVImportWizardTD;
import org.gcube.portlets.user.td.gwtservice.shared.tr.TRId;

View File

@ -1,42 +0,0 @@
package org.gcube.portlets.user.td.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.HasHandlers;
public class CloseTabularResourceEvent extends GwtEvent<CloseTabularResourceEvent.CloseTabularResourceHandler> {
public static Type<CloseTabularResourceHandler> TYPE = new Type<CloseTabularResourceHandler>();
private CloseTabularResourceType closeType;
public interface CloseTabularResourceHandler extends EventHandler {
void onCloseTabularResource(CloseTabularResourceEvent event);
}
public CloseTabularResourceEvent(CloseTabularResourceType closeType) {
this.closeType = closeType;
}
public CloseTabularResourceType getCloseType() {
return closeType;
}
@Override
protected void dispatch(CloseTabularResourceHandler handler) {
handler.onCloseTabularResource(this);
}
@Override
public Type<CloseTabularResourceHandler> getAssociatedType() {
return TYPE;
}
public static Type<CloseTabularResourceHandler> getType() {
return TYPE;
}
public static void fire(HasHandlers source, CloseTabularResourceType closeType) {
source.fireEvent(new CloseTabularResourceEvent(closeType));
}
}

View File

@ -1,12 +0,0 @@
/**
*
*/
package org.gcube.portlets.user.td.client.event;
/**
* @author "Federico De Faveri defaveri@isti.cnr.it"
*
*/
public enum CloseTabularResourceType {
TABLE;
}

View File

@ -1,42 +0,0 @@
package org.gcube.portlets.user.td.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import org.gcube.portlets.user.td.client.event.ExportTableType;
import com.google.gwt.event.shared.HasHandlers;
public class ExportTableEvent extends GwtEvent<ExportTableEvent.ExportTableHandler> {
public static Type<ExportTableHandler> TYPE = new Type<ExportTableHandler>();
private ExportTableType exportType;
public interface ExportTableHandler extends EventHandler {
void onExportTable(ExportTableEvent event);
}
public ExportTableEvent(ExportTableType exportType) {
this.exportType = exportType;
}
public ExportTableType getExportType() {
return exportType;
}
@Override
protected void dispatch(ExportTableHandler handler) {
handler.onExportTable(this);
}
@Override
public Type<ExportTableHandler> getAssociatedType() {
return TYPE;
}
public static Type<ExportTableHandler> getType() {
return TYPE;
}
public static void fire(HasHandlers source, ExportTableType exportType) {
source.fireEvent(new ExportTableEvent(exportType));
}
}

View File

@ -1,14 +0,0 @@
/**
*
*/
package org.gcube.portlets.user.td.client.event;
/**
* @author "Federico De Faveri defaveri@isti.cnr.it"
*
*/
public enum ExportTableType {
CSV,
SDMX,
JSON;
}

View File

@ -1,42 +0,0 @@
package org.gcube.portlets.user.td.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import org.gcube.portlets.user.td.client.event.ImportTableType;
import com.google.gwt.event.shared.HasHandlers;
public class ImportTableEvent extends GwtEvent<ImportTableEvent.ImportTableHandler> {
public static Type<ImportTableHandler> TYPE = new Type<ImportTableHandler>();
private ImportTableType importType;
public interface ImportTableHandler extends EventHandler {
void onImportTable(ImportTableEvent event);
}
public ImportTableEvent(ImportTableType importType) {
this.importType = importType;
}
public ImportTableType getImportType() {
return importType;
}
@Override
protected void dispatch(ImportTableHandler handler) {
handler.onImportTable(this);
}
@Override
public Type<ImportTableHandler> getAssociatedType() {
return TYPE;
}
public static Type<ImportTableHandler> getType() {
return TYPE;
}
public static void fire(HasHandlers source, ImportTableType importType) {
source.fireEvent(new ImportTableEvent(importType));
}
}

View File

@ -1,14 +0,0 @@
/**
*
*/
package org.gcube.portlets.user.td.client.event;
/**
* @author "Federico De Faveri defaveri@isti.cnr.it"
*
*/
public enum ImportTableType {
CSV,
SDMX,
JSON;
}

View File

@ -1,42 +0,0 @@
package org.gcube.portlets.user.td.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.HasHandlers;
public class OpenFunctionalityEvent extends GwtEvent<OpenFunctionalityEvent.OpenFunctionalityHandler> {
public static Type<OpenFunctionalityHandler> TYPE = new Type<OpenFunctionalityHandler>();
private OpenFunctionalityType openFunctionalityType;
public interface OpenFunctionalityHandler extends EventHandler {
void onOpenFunctionality(OpenFunctionalityEvent event);
}
public OpenFunctionalityEvent(OpenFunctionalityType openFunctionalityType) {
this.openFunctionalityType = openFunctionalityType;
}
public OpenFunctionalityType getOpenFunctionalityType() {
return openFunctionalityType;
}
@Override
protected void dispatch(OpenFunctionalityHandler handler) {
handler.onOpenFunctionality(this);
}
@Override
public Type<OpenFunctionalityHandler> getAssociatedType() {
return TYPE;
}
public static Type<OpenFunctionalityHandler> getType() {
return TYPE;
}
public static void fire(HasHandlers source, OpenFunctionalityType openFunctionalityType) {
source.fireEvent(new OpenFunctionalityEvent(openFunctionalityType));
}
}

View File

@ -1,12 +0,0 @@
/**
*
*/
package org.gcube.portlets.user.td.client.event;
/**
* @author "Federico De Faveri defaveri@isti.cnr.it"
*
*/
public enum OpenFunctionalityType {
PROPERTIES;
}

View File

@ -1,42 +0,0 @@
package org.gcube.portlets.user.td.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.HasHandlers;
public class OpenTabularResourceEvent extends GwtEvent<OpenTabularResourceEvent.OpenTabularResourceHandler> {
public static Type<OpenTabularResourceHandler> TYPE = new Type<OpenTabularResourceHandler>();
private OpenTabularResourceType openType;
public interface OpenTabularResourceHandler extends EventHandler {
void onOpenTabularResource(OpenTabularResourceEvent event);
}
public OpenTabularResourceEvent(OpenTabularResourceType openType) {
this.openType = openType;
}
public OpenTabularResourceType getOpenType() {
return openType;
}
@Override
protected void dispatch(OpenTabularResourceHandler handler) {
handler.onOpenTabularResource(this);
}
@Override
public Type<OpenTabularResourceHandler> getAssociatedType() {
return TYPE;
}
public static Type<OpenTabularResourceHandler> getType() {
return TYPE;
}
public static void fire(HasHandlers source, OpenTabularResourceType openType) {
source.fireEvent(new OpenTabularResourceEvent(openType));
}
}

View File

@ -1,12 +0,0 @@
/**
*
*/
package org.gcube.portlets.user.td.client.event;
/**
* @author "Federico De Faveri defaveri@isti.cnr.it"
*
*/
public enum OpenTabularResourceType {
TABLE;
}

View File

@ -1,42 +0,0 @@
package org.gcube.portlets.user.td.client.event;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import org.gcube.portlets.user.td.client.event.UIStateType;
import com.google.gwt.event.shared.HasHandlers;
public class UIStateEvent extends GwtEvent<UIStateEvent.UIStateHandler> {
public static Type<UIStateHandler> TYPE = new Type<UIStateHandler>();
private UIStateType uiStateType;
public interface UIStateHandler extends EventHandler {
void onUIState(UIStateEvent event);
}
public UIStateEvent(UIStateType uiStateType) {
this.uiStateType = uiStateType;
}
public UIStateType getUIStateType() {
return uiStateType;
}
@Override
protected void dispatch(UIStateHandler handler) {
handler.onUIState(this);
}
@Override
public Type<UIStateHandler> getAssociatedType() {
return TYPE;
}
public static Type<UIStateHandler> getType() {
return TYPE;
}
public static void fire(HasHandlers source, UIStateType uiStateType) {
source.fireEvent(new UIStateEvent(uiStateType));
}
}

View File

@ -1,8 +0,0 @@
package org.gcube.portlets.user.td.client.event;
public enum UIStateType {
START,
TR_OPEN,
TR_CLOSE,
WIZARD_OPEN;
}

View File

@ -3,18 +3,18 @@
*/
package org.gcube.portlets.user.td.client.ribbon;
import org.gcube.portlets.user.td.client.event.CloseTabularResourceEvent;
import org.gcube.portlets.user.td.client.event.CloseTabularResourceType;
import org.gcube.portlets.user.td.client.event.ExportTableEvent;
import org.gcube.portlets.user.td.client.event.ExportTableType;
import org.gcube.portlets.user.td.client.event.ImportTableEvent;
import org.gcube.portlets.user.td.client.event.ImportTableType;
import org.gcube.portlets.user.td.client.event.OpenFunctionalityEvent;
import org.gcube.portlets.user.td.client.event.OpenFunctionalityType;
import org.gcube.portlets.user.td.client.event.OpenTabularResourceEvent;
import org.gcube.portlets.user.td.client.event.OpenTabularResourceType;
import org.gcube.portlets.user.td.client.event.UIStateEvent;
import org.gcube.portlets.user.td.client.event.UIStateType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.CloseTabularResourceEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.CloseTabularResourceType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ExportTableEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ExportTableType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ImportTableEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ImportTableType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.OpenFunctionalityEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.OpenFunctionalityType;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.OpenTabularResourceEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.OpenTabularResourceType;
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.client.resource.TabularDataResources;
import com.allen_sauer.gwt.log.client.Log;