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){
|
protected void createTableInfo(TabResource tabResource){
|
||||||
id=tabResource.getId();
|
id=tabResource.getTrId().getTableId();
|
||||||
label=tabResource.getName();
|
label=tabResource.getName();
|
||||||
|
|
||||||
retrieveTabularResourceColumns();
|
retrieveTabularResourceColumns();
|
||||||
|
@ -89,7 +89,7 @@ public class StatisticalWidget {
|
||||||
|
|
||||||
|
|
||||||
protected void retrieveTabularResourceColumns() {
|
protected void retrieveTabularResourceColumns() {
|
||||||
TDGWTServiceAsync.INSTANCE.getColumnWithViewColumnIncluded(trId, new AsyncCallback<ArrayList<ColumnData>>() {
|
TDGWTServiceAsync.INSTANCE.getColumnsForStatistical(trId, new AsyncCallback<ArrayList<ColumnData>>() {
|
||||||
|
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
|
@ -123,6 +123,9 @@ public class StatisticalWidget {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void openStatisticalWidget(){
|
protected void openStatisticalWidget(){
|
||||||
ArrayList<ExternalTable> tables = new ArrayList<ExternalTable>();
|
ArrayList<ExternalTable> tables = new ArrayList<ExternalTable>();
|
||||||
TDExternalTable tdExternalTable=new TDExternalTable(trId, eventBus, id, label,columns);
|
TDExternalTable tdExternalTable=new TDExternalTable(trId, eventBus, id, label,columns);
|
||||||
|
|
|
@ -23,7 +23,14 @@ public class TDExternalTable implements ExternalTable {
|
||||||
private String label;
|
private String label;
|
||||||
private Map<String,String> columns;
|
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) {
|
public TDExternalTable(TRId trId, EventBus eventBus,String id, String label, Map<String,String> columns) {
|
||||||
Log.debug("TDExternalTable: "+trId);
|
Log.debug("TDExternalTable: "+trId);
|
||||||
this.trId=trId;
|
this.trId=trId;
|
||||||
|
@ -46,6 +53,14 @@ public class TDExternalTable implements ExternalTable {
|
||||||
public Map<String, String> getColumnsNameAndLabels() {
|
public Map<String, String> getColumnsNameAndLabels() {
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "TDExternalTable [trId=" + trId + ", id=" + id + ", label="
|
||||||
|
+ label + ", columns=" + columns + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue