Search in sources :

Example 11 with JSONString

use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.

the class RemoteServer method getArgs.

public void getArgs(String name, String source, String helpHandler, ServerRequestCallback<String> requestCallback) {
    JSONArray params = new JSONArray();
    params.set(0, new JSONString(name));
    params.set(1, new JSONString(source));
    params.set(2, new JSONString(StringUtil.notNull(helpHandler)));
    sendRequest(RPC_SCOPE, GET_ARGS, params, requestCallback);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONString(com.google.gwt.json.client.JSONString)

Example 12 with JSONString

use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.

the class RemoteServer method generateAppName.

@Override
public void generateAppName(String title, String appPath, String accountName, ServerRequestCallback<RSConnectAppName> resultCallback) {
    JSONArray params = new JSONArray();
    params.set(0, new JSONString(title));
    params.set(1, new JSONString(StringUtil.isNullOrEmpty(appPath) ? "" : appPath));
    params.set(2, new JSONString(accountName));
    sendRequest(RPC_SCOPE, "generate_app_name", params, resultCallback);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONString(com.google.gwt.json.client.JSONString)

Example 13 with JSONString

use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.

the class RemoteServer method getOutputPreview.

public void getOutputPreview(String dataFilePath, String encoding, boolean heading, String separator, String decimal, String quote, String comment, ServerRequestCallback<DataPreviewResult> requestCallback) {
    JSONArray params = new JSONArray();
    params.set(0, new JSONString(dataFilePath));
    params.set(1, new JSONString(encoding));
    params.set(2, JSONBoolean.getInstance(heading));
    params.set(3, new JSONString(separator));
    params.set(4, new JSONString(decimal));
    params.set(5, new JSONString(quote));
    params.set(6, new JSONString(comment));
    sendRequest(RPC_SCOPE, GET_OUTPUT_PREVIEW, params, requestCallback);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONString(com.google.gwt.json.client.JSONString)

Example 14 with JSONString

use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.

the class RemoteServer method replayNotebookChunkPlots.

@Override
public void replayNotebookChunkPlots(String docId, String chunkId, int pixelWidth, int pixelHeight, ServerRequestCallback<String> requestCallback) {
    JSONArray params = new JSONArray();
    params.set(0, new JSONString(docId));
    params.set(1, new JSONString(chunkId));
    params.set(2, new JSONNumber(pixelWidth));
    params.set(3, new JSONNumber(pixelHeight));
    sendRequest(RPC_SCOPE, "replay_notebook_chunk_plots", params, requestCallback);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONNumber(com.google.gwt.json.client.JSONNumber) JSONString(com.google.gwt.json.client.JSONString)

Example 15 with JSONString

use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.

the class RemoteServer method connectionPreviewTable.

@Override
public void connectionPreviewTable(ConnectionId connectionId, String table, ServerRequestCallback<Void> callback) {
    JSONArray params = new JSONArray();
    params.set(0, new JSONObject(connectionId));
    params.set(1, new JSONString(table));
    sendRequest(RPC_SCOPE, CONNECTION_PREVIEW_TABLE, params, callback);
}
Also used : JSONObject(com.google.gwt.json.client.JSONObject) JSONArray(com.google.gwt.json.client.JSONArray) JSONString(com.google.gwt.json.client.JSONString)

Aggregations

JSONString (com.google.gwt.json.client.JSONString)230 JSONArray (com.google.gwt.json.client.JSONArray)179 JSONNumber (com.google.gwt.json.client.JSONNumber)71 JSONObject (com.google.gwt.json.client.JSONObject)69 JavaScriptObject (com.google.gwt.core.client.JavaScriptObject)6 HashMap (java.util.HashMap)6 Breakpoint (org.rstudio.studio.client.common.debugging.model.Breakpoint)6 Point (org.rstudio.studio.client.workbench.views.plots.model.Point)6 JSONValue (com.google.gwt.json.client.JSONValue)5 JsonCallbackEvents (cz.metacentrum.perun.webgui.json.JsonCallbackEvents)5 PerunError (cz.metacentrum.perun.webgui.model.PerunError)5 ArrayList (java.util.ArrayList)5 JsArrayString (com.google.gwt.core.client.JsArrayString)4 Map (java.util.Map)4 JsonPostClient (cz.metacentrum.perun.webgui.json.JsonPostClient)3 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)2 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)2 JSONBoolean (com.google.gwt.json.client.JSONBoolean)2 GwtTestTest (com.googlecode.gwt.test.GwtTestTest)2 GetFacilityState (cz.metacentrum.perun.webgui.json.propagationStatsReader.GetFacilityState)2