From 06e0a6567b473fab0d1b3090eaa5a589613f8ae2 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Fri, 6 Nov 2015 10:54:10 +0200 Subject: Send ComboBox selection with RPC (#19929) Send the selection from the client to the server with RPC. Change-Id: I67e4e526f59550e83d9400729adf91e2b4bbb806 --- .../java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shared/src') 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); } -- cgit v1.2.3