33 lines
930 B
Java
33 lines
930 B
Java
package org.gcube.portlets.widgets.mpformbuilder.client;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
public interface MetadataProfileFormBuilderAsync {
|
|
|
|
/**
|
|
* GWT-RPC service asynchronous (client-side) interface
|
|
*
|
|
* @see org.gcube.portlets.widgets.mpformbuilder.client.MetadataProfileFormBuilderService
|
|
*/
|
|
void greetServer(java.lang.String name, AsyncCallback<java.lang.String> callback);
|
|
|
|
/**
|
|
* Utility class to get the RPC Async interface from client-side code
|
|
*/
|
|
public static final class Util {
|
|
private static MetadataProfileFormBuilderAsync instance;
|
|
|
|
public static final MetadataProfileFormBuilderAsync getInstance() {
|
|
if (instance == null) {
|
|
instance = (MetadataProfileFormBuilderAsync) GWT.create(MetadataProfileFormBuilderService.class);
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
private Util() {
|
|
// Utility class should not be instantiated
|
|
}
|
|
}
|
|
}
|