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.

TestDateField.java 940B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.vaadin.tests.components;
  2. import java.time.LocalDate;
  3. import com.vaadin.ui.DateField;
  4. /**
  5. * @author Vaadin Ltd
  6. *
  7. */
  8. public class TestDateField extends DateField {
  9. /**
  10. * Constructs an empty <code>DateField</code> with no caption.
  11. */
  12. public TestDateField() {
  13. }
  14. /**
  15. * Constructs an empty <code>DateField</code> with caption.
  16. *
  17. * @param caption
  18. * the caption of the datefield.
  19. */
  20. public TestDateField(String caption) {
  21. setCaption(caption);
  22. }
  23. /**
  24. * Constructs a new <code>DateField</code> with the given caption and
  25. * initial text contents.
  26. *
  27. * @param caption
  28. * the caption <code>String</code> for the editor.
  29. * @param value
  30. * the {@link LocalDate} value.
  31. */
  32. public TestDateField(String caption, LocalDate value) {
  33. setValue(value);
  34. setCaption(caption);
  35. }
  36. }