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.

DatePopupStyleName.java 953B

12345678910111213141516171819202122232425262728293031323334
  1. package com.vaadin.tests.components.datefield;
  2. import java.time.LocalDate;
  3. import com.vaadin.server.UserError;
  4. import com.vaadin.tests.components.TestBase;
  5. import com.vaadin.tests.components.TestDateField;
  6. import com.vaadin.ui.AbstractDateField;
  7. public class DatePopupStyleName extends TestBase {
  8. @Override
  9. public void setup() {
  10. setTheme("reindeer-tests");
  11. final AbstractDateField df = new TestDateField();
  12. df.setValue(LocalDate.of(1970, 1, 15));
  13. df.setWidth("200px");
  14. df.setRequiredIndicatorVisible(true);
  15. df.setComponentError(new UserError("abc"));
  16. df.addStyleName("popup-style");
  17. addComponent(df);
  18. }
  19. @Override
  20. protected String getDescription() {
  21. return "The DateField is given a style name 'test', but that style isn't applied on the calendar popup element.";
  22. }
  23. @Override
  24. protected Integer getTicketNumber() {
  25. return 8083;
  26. }
  27. }