Minor Updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@92383 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-02-27 09:03:58 +00:00
parent e66f61fbba
commit 58417f0ae4
1 changed files with 22 additions and 0 deletions

View File

@ -80,6 +80,7 @@ public class TabularDataController {
public TabularDataController() {
eventBus = new SimpleEventBus();
callHello();
bindToEvents();
}
@ -109,7 +110,26 @@ public class TabularDataController {
public void setWestData(BorderLayoutData westData) {
this.westData = westData;
}
protected void callHello(){
TDGWTServiceAsync.INSTANCE.hello(new AsyncCallback<String>(){
@Override
public void onFailure(Throwable caught) {
Log.info("No valid user found: "+caught.getMessage());
alertMessage("Error", "No user found");
}
@Override
public void onSuccess(String result) {
Log.info("Hello: "+result);
}
});
}
// Bind Controller to events on bus
protected void bindToEvents() {
eventBus.addHandler(
@ -172,6 +192,8 @@ public class TabularDataController {
d.show();
}
// Resume state of user interface
protected void resumeUIState() {
try {