Example usage for com.vaadin.client ValueMap getInt

List of usage examples for com.vaadin.client ValueMap getInt

Introduction

In this page you can find the example usage for com.vaadin.client ValueMap getInt.

Prototype

public native int getInt(final String name)
    ;

Source Link

Usage

From source file:com.haulmont.cuba.web.toolkit.ui.client.profiler.ScreenClientProfiler.java

License:Apache License

public static int getServerTimeFromJson(ValueMap json) {
    if (json.containsKey("profilerServerTime")) {
        return json.getInt("profilerServerTime");
    } else {// w  w  w .j  av  a  2 s . co  m
        return 0;
    }
}