1 package org.glom.web.client;
3 import java.util.ArrayList;
5 import org.glom.web.shared.GlomDocument;
7 import com.google.gwt.core.client.GWT;
8 import com.google.gwt.user.client.rpc.AsyncCallback;
10 public interface LibGlomServiceAsync {
12 void getGlomDocument(AsyncCallback<GlomDocument> callback);
14 void getLayoutListHeaders(String table, AsyncCallback<String[]> callback);
16 void getTableData(int start, int length, String table, AsyncCallback<ArrayList<String[]>> callback);
19 * Utility class to get the RPC Async interface from client-side code
21 public static final class Util {
22 private static LibGlomServiceAsync instance;
24 public static final LibGlomServiceAsync getInstance() {
25 if (instance == null) {
26 instance = (LibGlomServiceAsync) GWT.create(LibGlomService.class);
32 // Utility class should not be instanciated