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.

TooltipDelay.java 959B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.vaadin.tests.components;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.ui.Button;
  4. /**
  5. * Test to see if tooltip delay is working properly.
  6. *
  7. * @author Vaadin Ltd
  8. */
  9. public class TooltipDelay extends AbstractReindeerTestUI {
  10. @Override
  11. protected void setup(VaadinRequest vaadinRequest) {
  12. Button button = new Button("Expand");
  13. button.setDescription("Expand");
  14. addComponent(button);
  15. getTooltipConfiguration().setOpenDelay(5000);
  16. }
  17. /*
  18. * (non-Javadoc)
  19. *
  20. * @see com.vaadin.tests.components.AbstractTestUI#getTestDescription()
  21. */
  22. @Override
  23. protected String getTestDescription() {
  24. return "Tooltips should appear with a five second delay.";
  25. }
  26. /*
  27. * (non-Javadoc)
  28. *
  29. * @see com.vaadin.tests.components.AbstractTestUI#getTicketNumber()
  30. */
  31. @Override
  32. protected Integer getTicketNumber() {
  33. return 13695;
  34. }
  35. }