diff options
-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. */ |