public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { addTreeItems(response); if (treeItem.getText().equals(constants.rootItemDescription())) treeItem.setState(true, true); } else { GWT.log("ResourceTree - Couldn't retrieve JSON for request : " + request.toString(), null); } }
public void onError(Request request, Throwable exception) { GWT.log("ResourceGrids - on error for request : " + request.toString(), null); }