您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SlowComboBox.java 518B

1234567891011121314151617181920
  1. package com.vaadin.tests.components.combobox;
  2. import java.util.Map;
  3. import com.vaadin.v7.ui.ComboBox;
  4. /**
  5. * A combo box component with delay. Can be useful to use while testing UI.
  6. */
  7. public class SlowComboBox extends ComboBox {
  8. @Override
  9. public void changeVariables(Object source, Map<String, Object> variables) {
  10. try {
  11. Thread.sleep(1000);
  12. } catch (InterruptedException e) {
  13. e.printStackTrace();
  14. }
  15. super.changeVariables(source, variables);
  16. }
  17. }