Updated StatisticalWidget

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-statistical-widget@101087 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-28 15:20:48 +00:00 committed by Giancarlo Panichi
parent a222aaf5a3
commit 384bded80c
2 changed files with 21 additions and 3 deletions

View File

@ -80,7 +80,7 @@ public class StatisticalWidget {
protected void createTableInfo(TabResource tabResource){
id=tabResource.getId();
id=tabResource.getTrId().getTableId();
label=tabResource.getName();
retrieveTabularResourceColumns();
@ -89,7 +89,7 @@ public class StatisticalWidget {
protected void retrieveTabularResourceColumns() {
TDGWTServiceAsync.INSTANCE.getColumnWithViewColumnIncluded(trId, new AsyncCallback<ArrayList<ColumnData>>() {
TDGWTServiceAsync.INSTANCE.getColumnsForStatistical(trId, new AsyncCallback<ArrayList<ColumnData>>() {
public void onFailure(Throwable caught) {
if (caught instanceof TDGWTSessionExpiredException) {
@ -123,6 +123,9 @@ public class StatisticalWidget {
}
protected void openStatisticalWidget(){
ArrayList<ExternalTable> tables = new ArrayList<ExternalTable>();
TDExternalTable tdExternalTable=new TDExternalTable(trId, eventBus, id, label,columns);

View File

@ -23,7 +23,14 @@ public class TDExternalTable implements ExternalTable {
private String label;
private Map<String,String> columns;
/**
*
* @param trId
* @param eventBus
* @param id
* @param label
* @param columns
*/
public TDExternalTable(TRId trId, EventBus eventBus,String id, String label, Map<String,String> columns) {
Log.debug("TDExternalTable: "+trId);
this.trId=trId;
@ -46,6 +53,14 @@ public class TDExternalTable implements ExternalTable {
public Map<String, String> getColumnsNameAndLabels() {
return columns;
}
@Override
public String toString() {
return "TDExternalTable [trId=" + trId + ", id=" + id + ", label="
+ label + ", columns=" + columns + "]";
}
}