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:
parent
e66f61fbba
commit
58417f0ae4
|
@ -80,6 +80,7 @@ public class TabularDataController {
|
|||
|
||||
public TabularDataController() {
|
||||
eventBus = new SimpleEventBus();
|
||||
callHello();
|
||||
bindToEvents();
|
||||
}
|
||||
|
||||
|
@ -110,6 +111,25 @@ public class TabularDataController {
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue