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.

ColorPickerHsvTest.java 940B

1234567891011121314151617181920212223242526272829303132
  1. package com.vaadin.tests.components.colorpicker;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.shared.ui.colorpicker.Color;
  4. import com.vaadin.tests.components.AbstractReindeerTestUI;
  5. import com.vaadin.ui.ColorPickerArea;
  6. /**
  7. * Tests the HSV tab slider values when initially opening the tab.
  8. */
  9. public class ColorPickerHsvTest extends AbstractReindeerTestUI {
  10. @Override
  11. protected void setup(VaadinRequest request) {
  12. ColorPickerArea colorpicker = new ColorPickerArea();
  13. colorpicker.setValue(new Color(Integer.parseInt("00b4f0", 16)));
  14. colorpicker.setDefaultCaptionEnabled(false);
  15. colorpicker.setId("colorpicker");
  16. addComponent(colorpicker);
  17. }
  18. @Override
  19. protected String getTestDescription() {
  20. return "Tests the slider values when initially opening the HSV tab.";
  21. }
  22. @Override
  23. protected Integer getTicketNumber() {
  24. return 7863;
  25. }
  26. }