選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ComboBoxValoDoubleClick.java 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright 2000-2014 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.tests.components.combobox;
  17. import com.vaadin.annotations.Theme;
  18. import com.vaadin.server.VaadinRequest;
  19. import com.vaadin.tests.components.AbstractTestUI;
  20. import com.vaadin.ui.ComboBox;
  21. @Theme("valo")
  22. public class ComboBoxValoDoubleClick extends AbstractTestUI {
  23. // Quite impossible to autotest reliably as there must be a click to open
  24. // the popup and another click during the opening animation to reproduce the
  25. // bug. Manually a double click is just about the right timing.
  26. @Override
  27. protected void setup(VaadinRequest request) {
  28. ComboBox cb = new ComboBox("Double-click Me");
  29. for (int i = 0; i < 100; i++) {
  30. cb.addItem("Item-" + i);
  31. }
  32. addComponent(cb);
  33. }
  34. @Override
  35. public String getTestDescription() {
  36. return "ComboBox should remain usable even after double-clicking (affects only Valo theme with $v-overlay-animate-in).";
  37. }
  38. @Override
  39. protected Integer getTicketNumber() {
  40. return 17903;
  41. }
  42. }