Example usage for com.vaadin.client ValueMap containsKey

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

Introduction

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

Prototype

public native boolean containsKey(final String name)
    ;

Source Link

Usage

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

License:Apache License

public static String getProfilerMarkerFromJson(ValueMap json) {
    if (json.containsKey("profilerMarker")) {
        return json.getString("profilerMarker");
    } else {//from   www  .  j  a v  a  2s  .c  o m
        return null;
    }
}

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

License:Apache License

public static long getEventTsFromJson(ValueMap json) {
    if (json.containsKey("profilerEventTs")) {
        try {//from   ww  w.ja va  2 s .  c  om
            return Long.valueOf(json.getString("profilerEventTs"));
        } catch (NumberFormatException e) {
            return 0;
        }
    } else {
        return 0;
    }
}

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 {//from w  ww. j  av  a2  s.  c  o  m
        return 0;
    }
}