Minor update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@101720 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-11-27 10:03:14 +00:00 committed by Giancarlo Panichi
parent 9d451ec72d
commit 9048fa1ef5
1 changed files with 20 additions and 20 deletions

View File

@ -72,22 +72,6 @@ public class TabularDataXController {
});
}
protected void doOpenTable(TableId tableId)
{
service.openTable(tdSessionId, tableId, new AsyncCallback<TableDefinition>() {
public void onSuccess(TableDefinition result) {
Log.trace("table definition: "+result);
currentTable = result;
eventBus.fireEvent(new TableReadyEvent(result));
}
public void onFailure(Throwable caught) {
eventBus.fireEvent(new FailureEvent(caught, "Tabledefinition loading failed."));
}
});
}
protected void doCloseTable()
{
service.closeTable(tdSessionId, new AsyncCallback<Void>() {
@ -103,6 +87,22 @@ public class TabularDataXController {
});
}
protected void doOpenTable(TableId tableId)
{
service.openTable(tdSessionId, tableId, new AsyncCallback<TableDefinition>() {
public void onFailure(Throwable caught) {
eventBus.fireEvent(new FailureEvent(caught, "Tabledefinition loading failed."));
}
public void onSuccess(TableDefinition result) {
Log.trace("table definition: "+result);
currentTable = result;
eventBus.fireEvent(new TableReadyEvent(result));
}
});
}
@ -111,15 +111,15 @@ public class TabularDataXController {
ColumnsReorderingConfig columnReorderingConfig=event.getColumnsReorderingConfig();
service.setCurrentTableColumnsReordering(tdSessionId, columnReorderingConfig, new AsyncCallback<TableDefinition>() {
public void onFailure(Throwable caught) {
eventBus.fireEvent(new FailureEvent(caught, "Column Reordering failed."));
}
public void onSuccess(TableDefinition result) {
Log.trace("table definition: "+result);
currentTable = result;
eventBus.fireEvent(new TableReadyEvent(result));
}
public void onFailure(Throwable caught) {
eventBus.fireEvent(new FailureEvent(caught, "Column Reordering failed."));
}
});
}