diff options
author | Henri Sara <hesara@vaadin.com> | 2015-11-05 13:06:20 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-08 08:22:12 +0000 |
commit | 9207d3f3442a6ab6b9fda29d8a76e2bee4929ab1 (patch) | |
tree | 95c3ac34b0b2cb70b4d204b136b3de5cd9c1f38c /shared/src | |
parent | 44010cfbfbf4135f3bf3be02c6a852689b1cef8d (diff) | |
download | vaadin-framework-9207d3f3442a6ab6b9fda29d8a76e2bee4929ab1.tar.gz vaadin-framework-9207d3f3442a6ab6b9fda29d8a76e2bee4929ab1.zip |
Create new items with RPC (#19929)
When the user creates a new item, send it with client to
server RPC.
Change-Id: Iaf60fc910d4e8b57b681b4cf13f124871c1a01b0
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/combobox/ComboBoxServerRpc.java | 9 |
1 files changed, 8 insertions, 1 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 d140e7da6e..04d93c9062 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 @@ -23,5 +23,12 @@ import com.vaadin.shared.communication.ServerRpc; * @since */ public interface ComboBoxServerRpc extends ServerRpc { - + /** + * Create a new item in the combo box. This method can only be used when the + * ComboBox is configured to allow the creation of new items by the user. + * + * @param itemValue + * user entered string value for the new item + */ + public void createNewItem(String itemValue); } |