List of usage examples for com.vaadin.client ValueMap getKeySet
public Set<String> getKeySet()
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 ww. ja va 2s . c om*/ for (String key : mappings.getKeySet()) { config.setProperty(key, mappings.getString(key)); } setupConfig(); }
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 ww. ja v a 2 s .co 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 va 2 s .com 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); }