summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2015-11-06 10:54:10 +0200
committerArtur Signell <artur@vaadin.com>2016-08-08 09:44:24 +0000
commit06e0a6567b473fab0d1b3090eaa5a589613f8ae2 (patch)
treee28a770640dc60fa15cee8f141a29ea29ca944bd /shared/src
parent07292fe8fb7b9d9cf94dd3a57cfab4e6e31bd639 (diff)
downloadvaadin-framework-06e0a6567b473fab0d1b3090eaa5a589613f8ae2.tar.gz
vaadin-framework-06e0a6567b473fab0d1b3090eaa5a589613f8ae2.zip
Send ComboBox selection with RPC (#19929)
Send the selection from the client to the server with RPC. Change-Id: I67e4e526f59550e83d9400729adf91e2b4bbb806
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java b/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java
index 04d93c9062..38704b5169 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java
@@ -31,4 +31,12 @@ public interface ComboBoxServerRpc extends ServerRpc {
* user entered string value for the new item
*/
public void createNewItem(String itemValue);
+
+ /**
+ * Set the current selection.
+ *
+ * @param item
+ * the id of a single item or null to deselect the current value
+ */
+ public void setSelectedItem(String item);
}