protected String getJsonModel(ScenarioSimulationModel model) { return MarshallingWrapper.toJSON(model); }
/** * Call this method to unmarshal the REST error response to a Bean of a * particular type. * @param response * @param type */ protected <T> T fromJSON(final Response response, final Class<T> type) { return MarshallingWrapper.fromJSON(response.getText(), type); }
protected boolean isDirty() { try { view.getScenarioGridPanel().getScenarioGrid().getModel().resetErrors(); int currentHashcode = MarshallingWrapper.toJSON(model).hashCode(); return originalHash != currentHashcode; } catch (Exception ignored) { return false; } }
public native void postToMainApp(String json)/*-{ postMessage(json); }-*/; }
public native void postToMainApp(String json)/*-{ postMessage(json); }-*/; }