Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@90461 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-01-24 09:32:14 +00:00
parent cccc3c3b8e
commit f4ffd211d0
5 changed files with 5 additions and 116 deletions

View File

@ -1,12 +1,12 @@
package org.gcube.portlets.user.td.expressionwidget.client;
import org.gcube.portlets.user.td.expressionwidget.client.resource.ExpressionResources;
import org.gcube.portlets.user.td.expressionwidget.shared.column.ColumnDataType;
import org.gcube.portlets.user.td.expressionwidget.shared.column.ColumnTypeCode;
import org.gcube.portlets.user.td.expressionwidget.shared.model.Expression;
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.column.ColumnDataType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.column.ColumnTypeCode;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.client.rpc.AsyncCallback;

View File

@ -1,10 +1,10 @@
package org.gcube.portlets.user.td.expressionwidget.client;
import org.gcube.portlets.user.td.expressionwidget.client.resource.ExpressionResources;
import org.gcube.portlets.user.td.expressionwidget.shared.column.ColumnDataType;
import org.gcube.portlets.user.td.expressionwidget.shared.model.Expression;
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.column.ColumnDataType;
import com.allen_sauer.gwt.log.client.Log;
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;

View File

@ -2,8 +2,8 @@ package org.gcube.portlets.user.td.expressionwidget.client;
import org.gcube.portlets.user.td.expressionwidget.shared.column.ColumnDataType;
import org.gcube.portlets.user.td.expressionwidget.shared.column.ColumnTypeCode;
import org.gcube.portlets.user.td.widgetcommonevent.shared.column.ColumnDataType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.column.ColumnTypeCode;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.EntryPoint;

View File

@ -1,45 +0,0 @@
package org.gcube.portlets.user.td.expressionwidget.shared.column;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public enum ColumnDataType {
Boolean("Boolean"),
Geometry("Geometry"),
Integer("Integer"),
Numeric("Numeric"),
Text("Text");
/**
* @param text
*/
private ColumnDataType(final String id) {
this.id = id;
}
private final String id;
@Override
public String toString() {
return id;
}
public List<String> getColumnDataTypes(){
List<String> types=new ArrayList<String>();
types.add(Boolean.toString());
types.add(Geometry.toString());
types.add(Integer.toString());
types.add(Numeric.toString());
types.add(Text.toString());
return types;
}
}

View File

@ -1,66 +0,0 @@
package org.gcube.portlets.user.td.expressionwidget.shared.column;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public enum ColumnTypeCode {
ANNOTATION("ANNOTATION"),
ATTRIBUTE("ATTRIBUTE"),
CODE("CODE"),
CODEDESCRIPTION("CODEDESCRIPTION"),
CODENAME("CODENAME"),
DIMENSION("DIMENSION"),
MEASURE("MESAURE"),
TIMEDIMENSION("TIMEDIMENSION");
/**
* @param text
*/
private ColumnTypeCode(final String id) {
this.id = id;
}
private final String id;
@Override
public String toString() {
return id;
}
public List<String> getColumnDataTypes(){
List<String> types=new ArrayList<String>();
types.add(ANNOTATION.toString());
types.add(ATTRIBUTE.toString());
types.add(CODE.toString());
types.add(CODEDESCRIPTION.toString());
types.add(CODENAME.toString());
types.add(DIMENSION.toString());
types.add(MEASURE.toString());
types.add(TIMEDIMENSION.toString());
return types;
}
public List<String> getColumnDataTypesLabel(){
List<String> types=new ArrayList<String>();
types.add("Annotation");
types.add("Attribute");
types.add("Code");
types.add("Code Description");
types.add("Code Name");
types.add("Dimension");
types.add("Measure");
types.add("Time Dimension");
return types;
}
}