Minor update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@101674 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-11-21 12:11:05 +00:00
parent 794dffa310
commit d92efcb49d
1 changed files with 1 additions and 50 deletions

View File

@ -317,55 +317,6 @@ public class ResourcesPanel extends FramedPanel {
typeColumn.setCell(button);
/*
typeColumn.setCell(new AbstractCell<ResourceTDType>() {
@Override
public void render(Context context, ResourceTDType value,
SafeHtmlBuilder sb) {
String head = ("<img title='"
+ SafeHtmlUtils.htmlEscape(value.toString()) + "' src='");
String bodyC;
switch (value) {
case CHART:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.chart().getSafeUri().asString());
break;
case CODELIST:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.codelist().getSafeUri().asString());
break;
case CSV:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.csv().getSafeUri().asString());
break;
case GUESSER:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.resources().getSafeUri().asString());
break;
case JSON:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.json().getSafeUri().asString());
break;
case MAP:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.gis().getSafeUri().asString());
break;
case SDMX:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.sdmx().getSafeUri().asString());
break;
default:
bodyC = SafeHtmlUtils.htmlEscape(ResourceBundle.INSTANCE
.resources().getSafeUri().asString());
break;
}
sb.appendHtmlConstant(head + bodyC + "' >");
}
});
*/
List<ColumnConfig<ResourceTDDescriptor, ?>> l = new ArrayList<ColumnConfig<ResourceTDDescriptor, ?>>();