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 OnlineGlomServiceAsync {
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 OnlineGlomServiceAsync instance;
24 public static final OnlineGlomServiceAsync getInstance() {
25 if (instance == null) {
26 instance = (OnlineGlomServiceAsync) GWT.create(OnlineGlomService.class);
32 // Utility class should not be instanciated