List of usage examples for com.vaadin.client ValueMap containsKey
public native boolean containsKey(final String name) ;
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; } }