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:
parent
a222aaf5a3
commit
384bded80c
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
@ -47,6 +54,14 @@ public class TDExternalTable implements ExternalTable {
|
|||
return columns;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TDExternalTable [trId=" + trId + ", id=" + id + ", label="
|
||||
+ label + ", columns=" + columns + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue