class DatabaseTab extends VerticalLayout {
public enum Operation {
CREATE {public String toString() { return "Create"; }},
READ {public String toString() { return "Read"; }},
UPDATE {public String toString() { return "Update"; }},
DELETE {public String toString() { return "Delete"; }}
}
private ComboBox<Operation> operationInput;
//other data members
DatabaseTab() {
operationInput = new ComboBox<>();
operationInput.setEmptySelectionAllowed(false);
operationInput.setTextInputAllowed(false);
operationInput.setItems(CREATE, DELETE);
operationInput.setSelectedItem(CREATE);
operationInput.addValueChangeListener(event -> handleOperationValueChange());
addComponent(operationInput);
}
//other methods
}
What could be an explanation for the fact that the operationInput
combobox only contains the CREATE element?
I’ve done a clean. I’ve even restarted my machine.
Vaadin 8.4.1, IntelliJ 2018.3.4, Tomcat 9.0.10, Maven 3.6.0, Java 1.8