diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-05-17 17:40:43 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-05-17 17:40:43 +0300 |
commit | eb52b41e98165abf097191dc525831598cf9c217 (patch) | |
tree | 4ee1b5f969cf6cacd360afe3c721184610e8864a /server/src | |
parent | 0e97fadbf9c57c3c6504c46a5f080f050d1bf288 (diff) | |
download | vaadin-framework-eb52b41e98165abf097191dc525831598cf9c217.tar.gz vaadin-framework-eb52b41e98165abf097191dc525831598cf9c217.zip |
Add constructor for ComboBox with DataCommunicator (#10923)
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/ComboBox.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/ui/ComboBox.java b/server/src/main/java/com/vaadin/ui/ComboBox.java index 494871bb2c..32ee7b278a 100644 --- a/server/src/main/java/com/vaadin/ui/ComboBox.java +++ b/server/src/main/java/com/vaadin/ui/ComboBox.java @@ -236,7 +236,7 @@ public class ComboBox<T> extends AbstractSingleSelect<T> * {@link #setItems(Collection)} */ public ComboBox() { - super(new DataCommunicator<T>() { + this(new DataCommunicator<T>() { @Override protected DataKeyMapper<T> createKeyMapper( ValueProvider<T, Object> identifierGetter) { @@ -249,8 +249,6 @@ public class ComboBox<T> extends AbstractSingleSelect<T> }; } }); - - init(); } /** @@ -283,6 +281,18 @@ public class ComboBox<T> extends AbstractSingleSelect<T> } /** + * Constructs and initializes an empty combo box. + * + * @param dataCommunicator + * the data comnunicator to use with this ComboBox + * @since + */ + protected ComboBox(DataCommunicator<T> dataCommunicator) { + super(dataCommunicator); + init(); + } + + /** * Initialize the ComboBox with default settings and register client to * server RPC implementation. */ |