Example usage for com.google.gwt.query.client Properties getStr

List of usage examples for com.google.gwt.query.client Properties getStr

Introduction

In this page you can find the example usage for com.google.gwt.query.client Properties getStr.

Prototype

public final String getStr(Object name) 

Source Link

Usage

From source file:com.github.jdramaix.client.ConverterApp.java

License:Apache License

private void onreadystatechange(XMLHttpRequest xhr) {
    if (xhr.getReadyState() == 4) {
        Properties json = JsUtils.parseJSON(xhr.getResponseText());
        if (xhr.getStatus() == 200) {
            displayAnswer(json.getStr("result"));
            console.log("Logs form server: \n" + json.getStr("logs"));
        } else {/*w  ww . j  a v a  2s  . c om*/
            Window.alert("Ooops something went wrong... Please try again!");
            console.log(json.getStr("result"));
        }

        uploadUrl = json.getStr("nextUrl");
    }
}