List of usage examples for com.vaadin.client ValueMap getString
public native String getString(String name) ;
From source file:annis.gui.widgets.gwt.client.ui.VJITWrapper.java
License:Apache License
private void setupConfig(ValueMap mappings) { if (config == null) { config = new JITConf(); }/* w w w . j av a2 s . co m*/ for (String key : mappings.getKeySet()) { config.setProperty(key, mappings.getString(key)); } setupConfig(); }
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 {/* www.j av a 2s .c om*/ 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 {/*ww w . j a v a 2s.c o m*/ return Long.valueOf(json.getString("profilerEventTs")); } catch (NumberFormatException e) { return 0; } } else { return 0; } }
From source file:org.semanticsoft.vaaclipse.widgets.client.ui.extlayout.ExtendedVerticalLayoutConnector.java
License:Open Source License
/** * Called whenever an update is received from the server */// w w w .j a v a 2s . c o m public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { VExtendedVerticalLayout layout = getWidget(); layout.paintableId = uidl.getId(); if (uidl.hasAttribute(VExtendedVerticalLayout.VARIABLES)) { ValueMap vmap = uidl.getMapAttribute(VExtendedVerticalLayout.VARIABLES); Set<String> indexes = vmap.getKeySet(); for (String index : indexes) { layout.variables.put(index, vmap.getString(index)); } } }
From source file:org.semanticsoft.vaadinaddons.boundsinfo.client.ui.VBoundsinfoVerticalLayout.java
License:Open Source License
/** * Called whenever an update is received from the server *///from w w w . j a v a2s . c om public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { super.updateFromUIDL(uidl, client); // This call should be made first. // It handles sizes, captions, tooltips, etc. automatically. if (client.updateComponent(this, uidl, true)) { // If client.updateComponent returns true there has been no changes // and we // do not need to update anything. return; } // Save reference to server connection object to be able to send // user interaction later this.client = client; // Save the client side identifier (paintable id) for the widget paintableId = uidl.getId(); if (uidl.hasAttribute(VARIABLES)) { ValueMap vmap = uidl.getMapAttribute(VARIABLES); Set<String> indexes = vmap.getKeySet(); for (String index : indexes) { variables.put(index, vmap.getString(index)); } } this.enableBoundsUpdate = uidl.getBooleanAttribute(ENABLE_BOUNDS_UPDATE); if (this.enableBoundsUpdate) updateManager = new BoundsUpdateManager(this, paintableId, client); }