private void call(final JSONValue... params) { final JSONArray aryParams = new JSONArray(); for (final JSONValue p : params) { aryParams.set(aryParams.size(), p); } nativeCall(aryParams.getJavaScriptObject()); }
private static List<JSONValue> getInnerList(JSONArray jsonArray) { JavaScriptObject jsArray = jsonArray.getJavaScriptObject(); List<JSONValue> list = JavaScriptObjects.getObject(jsArray, JSONARRAY_LIST); if (list == null) { list = new ArrayList<JSONValue>(); JavaScriptObjects.setProperty(jsArray, JSONARRAY_LIST, list); } return list; }
/** * Sets the value of each anchor * * @param values - int array of values */ public void setValues(int[] values) { JSONArray vals = intArrayToJSONArray(values); setValuesJS(getElement().getId(), vals.getJavaScriptObject()); }