40 lines
890 B
Java
40 lines
890 B
Java
package org.gcube.portlets.widgets.workspacesharingwidget.client;
|
|
|
|
import com.extjs.gxt.ui.client.widget.Label;
|
|
import com.google.gwt.core.client.EntryPoint;
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
import com.google.gwt.user.client.ui.RootPanel;
|
|
|
|
/**
|
|
* Entry point classes define <code>onModuleLoad()</code>.
|
|
*/
|
|
public class WorkspaceSharingWidget implements EntryPoint {
|
|
|
|
|
|
|
|
/**
|
|
* This is the entry point method.
|
|
*/
|
|
public void onModuleLoad() {
|
|
|
|
|
|
final Label loading = new Label("loading");
|
|
WorkspaceSharingController.rpcWorkspaceService.greetServer("a",new AsyncCallback<String>() {
|
|
|
|
@Override
|
|
public void onSuccess(String result) {
|
|
loading.setText(result);
|
|
|
|
}
|
|
|
|
@Override
|
|
public void onFailure(Throwable caught) {
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
});
|
|
|
|
RootPanel.get("workpacesharingwidget").add(loading);
|
|
}
|
|
}
|