You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ComboBoxPasteWithDisabled.java 660B

1234567891011121314151617181920212223242526
  1. package com.vaadin.tests.components.combobox;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractTestUI;
  4. import com.vaadin.ui.ComboBox;
  5. public class ComboBoxPasteWithDisabled extends AbstractTestUI {
  6. @Override
  7. public String getDescription() {
  8. return "Paste from Clipboard should not open the popup of a disabled ComboBox";
  9. }
  10. @Override
  11. protected Integer getTicketNumber() {
  12. return 7898;
  13. }
  14. @Override
  15. protected void setup(VaadinRequest request) {
  16. ComboBox<String> comboBox = new ComboBox<>();
  17. comboBox.setEnabled(false);
  18. addComponent(comboBox);
  19. }
  20. }