Bladeren bron

Make ComboBox always immediate (#4054)

Change-Id: I34525b7d9e78ede7f9533869326ca0c08474963a
tags/7.2.0.beta1
Jonatan Kronqvist 10 jaren geleden
bovenliggende
commit
f374bc72f5
1 gewijzigde bestanden met toevoegingen van 11 en 3 verwijderingen
  1. 11
    3
      server/src/com/vaadin/ui/ComboBox.java

+ 11
- 3
server/src/com/vaadin/ui/ComboBox.java Bestand weergeven

@@ -103,22 +103,30 @@ public class ComboBox extends AbstractSelect implements
private boolean textInputAllowed = true;

public ComboBox() {
setNewItemsAllowed(false);
initDefaults();
}

public ComboBox(String caption, Collection<?> options) {
super(caption, options);
setNewItemsAllowed(false);
initDefaults();
}

public ComboBox(String caption, Container dataSource) {
super(caption, dataSource);
setNewItemsAllowed(false);
initDefaults();
}

public ComboBox(String caption) {
super(caption);
initDefaults();
}

/**
* Initialize the ComboBox with default settings
*/
private void initDefaults() {
setNewItemsAllowed(false);
setImmediate(true);
}

/**

Laden…
Annuleren
Opslaan