Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@114840 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d611a6a8a1
commit
546620b26f
|
@ -1,5 +1,8 @@
|
||||||
package org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column;
|
package org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi" <a
|
* @author "Giancarlo Panichi" <a
|
||||||
|
@ -24,10 +27,15 @@ public enum ColumnDataType {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getColumnDataTypeLabel() {
|
public String getLabel() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getId(){
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id
|
||||||
|
@ -43,5 +51,11 @@ public enum ColumnDataType {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static List<ColumnDataType> asList() {
|
||||||
|
List<ColumnDataType> list=Arrays.asList(values());
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,12 @@ public enum ColumnTypeCode {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getId(){
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
public String getColumnTypeCodeLabel() {
|
public String getLabel() {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case ANNOTATION:
|
case ANNOTATION:
|
||||||
return "Annotation";
|
return "Annotation";
|
||||||
|
|
Loading…
Reference in New Issue